System::Object::Is method
Object::Is method
检查对象是否表示 targetType 描述的类型实例。相当于 C# 的 ‘is’ 运算符。
virtual bool System::Object::Is(const TypeInfo &targetType) const
| 参数 | 类型 | 描述 |
|---|---|---|
| targetType | const TypeInfo& | TypeInfo 结构,描述用于测试当前对象的类型。 |
ReturnValue
如果对象是标记类型或其子类,则为 True;否则为 false。
另见
- Class TypeInfo
- Class Object
- Namespace System
- Library Aspose.Font for C++