System::Boolean::Parse 方法

Boolean::Parse method

将指定的字符串转换为 bool 类型的值。

static bool System::Boolean::Parse(const String &value)
参数类型描述
const String&待转换的字符串。

ReturnValue

用于存放转换结果的 bool 变量;如果指定的字符串等于 “True”,则结果为 true;如果等于 “False”,则结果为 false。

另见