## SmartPtr::Is method


检查指向的对象是否为特定类型或其子类型。遵循 C# 的 'is' 语义。

```cpp
bool System::SmartPtr<T>::Is(const System::TypeInfo &target) const
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| target | const System::TypeInfo\& | 指定要检查的目标类型。 |

### ReturnValue

如果 C# 的 'is' 检查为真则返回 True，否则返回 false。
## 备注


实现。

## 另见

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