## Object::Is method


检查对象是否表示 targetType 描述的类型实例。相当于 C# 'is' 运算符。

```cpp
virtual bool System::Object::Is(const TypeInfo &targetType) const
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| targetType | const TypeInfo\& | [TypeInfo](../../typeinfo/) 结构，描述用于测试当前对象的类型。 |

### ReturnValue

如果对象是标记类型或其子类，则为 true；否则为 false。

## 另见

* Class [TypeInfo](../../typeinfo/)
* Class [Object](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
