GetCustomAttributes()

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

Returns an array containing objects that represent all custom attributes applied to the type represented by the current object.

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

Arguments

ParameterTypeDescription
attributeTypeconst TypeInfo&Type of attribute to look for.
inheritboolWhether to check inherited attributes, too.

MemberInfo::GetCustomAttributes(bool) const method

Returns an array containing objects that represent all custom attributes applied to the type represented by the current object.

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

Arguments

ParameterTypeDescription
inheritboolWhether to check inherited attributes, too.

See Also