## TypeInfo::GetCustomAttribute method


搜索具有指定类型且应用于当前对象所表示的类型的自定义属性。

```cpp
ObjectPtr System::TypeInfo::GetCustomAttribute(const TypeInfo &attributeType) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| attributeType | const TypeInfo\& | 对表示要搜索属性类型的 [TypeInfo](../) 对象的常量引用 |

### ReturnValue

指向表示找到的属性的对象的指针；如果没有匹配搜索条件的属性，则为空指针

## 另见

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