System::SmartPtr::Is 方法
SmartPtr::Is method
检查指向的对象是否为特定类型或其子类型。遵循 C# 的 ‘is’ 语义。
bool System::SmartPtr<T>::Is(const System::TypeInfo &target) const
| 参数 | 类型 | 描述 |
|---|---|---|
| target | const System::TypeInfo& | 指定要检查的目标类型。 |
ReturnValue
如果 C# “is” 风格的检查为真则返回 true,否则返回 false。
备注
实现。
另见
- Class TypeInfo
- Class SmartPtr
- Namespace System
- Library Aspose.Font for C++