Click or drag to resize
StringIsNullOrWhiteSpace Method
Indicates whether a specified string is null, empty, or consists only of white-space characters.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static bool IsNullOrWhiteSpace(
	string value
)

Parameters

value
Type: SystemString
The string to test.

Return Value

Type: Boolean
true if the value parameter is null or Empty, or if value consists exclusively of white-space characters.
See Also