System::String::IsNull 方法

String::IsNull method

检查字符串是否被视为 null。只有在通过 String() 构造函数创建、移动、复制或从 null 字符串赋值,或调用了 reset() 方法时,String 才为 null。

bool System::String::IsNull() const

ReturnValue

如果字符串被视为 null 则为 true,否则为 false。

另见