## MemberInfo::GetCustomAttributes(bool) const method


返回一个数组，包含表示当前对象所代表类型上应用的所有自定义属性的对象。

```cpp
ArrayPtr<SharedPtr<Object>> System::Reflection::MemberInfo::GetCustomAttributes(bool inherit=false) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| inherit | bool | 是否也检查继承的属性。 |

## 另见

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Object](../../../system/object/)
* Class [MemberInfo](../)
* Namespace [System::Reflection](../../)
* Library [Aspose.Font for C++](../../../)
## MemberInfo::GetCustomAttributes(const TypeInfo\&, bool) const method


返回一个数组，包含表示当前对象所代表类型上应用的所有自定义属性的对象。

```cpp
ArrayPtr<SharedPtr<Object>> System::Reflection::MemberInfo::GetCustomAttributes(const TypeInfo &attributeType, bool inherit=false) const
```


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

## 另见

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Object](../../../system/object/)
* Class [TypeInfo](../../../system/typeinfo/)
* Class [MemberInfo](../)
* Namespace [System::Reflection](../../)
* Library [Aspose.Font for C++](../../../)
