System::Reflection::MemberInfo::GetCustomAttributes 方法

MemberInfo::GetCustomAttributes(bool) const method

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

ArrayPtr<SharedPtr<Object>> System::Reflection::MemberInfo::GetCustomAttributes(bool inherit=false) const
参数类型描述
inheritbool是否也检查继承的属性。

另见

MemberInfo::GetCustomAttributes(const TypeInfo&, bool) const method

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

ArrayPtr<SharedPtr<Object>> System::Reflection::MemberInfo::GetCustomAttributes(const TypeInfo &attributeType, bool inherit=false) const
参数类型描述
attributeTypeconst TypeInfo&要查找的属性类型。
inheritbool是否也检查继承的属性。

另见