System::String::IsNullOrWhiteSpace 方法

String::IsNullOrWhiteSpace method

指示指定的字符串是 null、为空,还是仅由空白字符组成。

static bool System::String::IsNullOrWhiteSpace(const String &str)
ParameterType描述
strconst String&String 用于检查。

ReturnValue

如果字符串为 null、为空或仅包含空白字符则返回 true,否则返回 false。

另见