System::String::Is 方法

String::Is method

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

bool System::String::Is(const System::TypeInfo &target) const
ParameterType描述
targetconst System::TypeInfo&用于检查的 TypeInfo

ReturnValue

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

另见