System::String::Is 方法

String::Is method

检查字符串对象是否为传入的 TypeInfo 指定的类型。

bool System::String::Is(const System::TypeInfo &target) const
参数类型描述
targetconst System::TypeInfo&TypeInfo 用于对照检查。

ReturnValue

如果目标是 String 类的 TypeInfo,则为 true,否则为 false。

另见