System::String::IsNullOrEmpty method

String::IsNullOrEmpty() const method

检查字符串是否为空或被视为 null。

bool System::String::IsNullOrEmpty() const

ReturnValue

如果字符串为空或 null,则为 true;否则为 false。

另见

String::IsNullOrEmpty(const String&) method

检查传入的字符串是否为 null 或为空。

static bool System::String::IsNullOrEmpty(const String &str)
参数类型描述
strconst String&String 用于检查。

ReturnValue

如果字符串为 null 或为空,则为 true;否则为 false。

另见