IsNullOrWhiteSpace()

String::IsNullOrWhiteSpace(const String&) method

Indicates whether a specified string is null, empty, or consists only of white-space characters.

static bool System::String::IsNullOrWhiteSpace(const String &str)

Arguments

ParameterTypeDescription
strconst String&String to check.

Return Value

true if string is null or empty or consists exclusively of white-space characters, false otherwise.

See Also