## TypeInfo::GetCustomAttributes() const method


返回一个数组，其中包含表示应用于该类型的所有自定义属性的对象。

```cpp
ArrayPtr<ObjectPtr> System::TypeInfo::GetCustomAttributes() const
```

## 另见

* Typedef [ArrayPtr](../../arrayptr/)
* Class [SmartPtr](../../smartptr/)
* Class [TypeInfo](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## TypeInfo::GetCustomAttributes(const TypeInfo\&, bool) const method


返回一个数组，其中包含表示应用于该类型的特定属性的对象。

```cpp
ArrayPtr<ObjectPtr> System::TypeInfo::GetCustomAttributes(const TypeInfo &attributeType, bool inherit) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| attributeType | const TypeInfo\& | 要查找的属性的类型。 |
| inherit | bool | 是否也查找继承的属性。 |

## 另见

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