System::Reflection::MemberInfo::GetCustomAttributes 方法
MemberInfo::GetCustomAttributes(bool) const method
返回一个数组,包含表示当前对象所代表类型上应用的所有自定义属性的对象。
ArrayPtr<SharedPtr<Object>> System::Reflection::MemberInfo::GetCustomAttributes(bool inherit=false) const
| 参数 | 类型 | 描述 |
|---|---|---|
| inherit | bool | 是否也检查继承的属性。 |
另见
- Typedef ArrayPtr
- Typedef SharedPtr
- Class Object
- Class MemberInfo
- Namespace System::Reflection
- Library Aspose.Font for C++
MemberInfo::GetCustomAttributes(const TypeInfo&, bool) const method
返回一个数组,包含表示当前对象所代表类型上应用的所有自定义属性的对象。
ArrayPtr<SharedPtr<Object>> System::Reflection::MemberInfo::GetCustomAttributes(const TypeInfo &attributeType, bool inherit=false) const
| 参数 | 类型 | 描述 |
|---|---|---|
| attributeType | const TypeInfo& | 要查找的属性类型。 |
| inherit | bool | 是否也检查继承的属性。 |
另见
- Typedef ArrayPtr
- Typedef SharedPtr
- Class Object
- Class TypeInfo
- Class MemberInfo
- Namespace System::Reflection
- Library Aspose.Font for C++