GetCustomAttributes()

TypeInfo::GetCustomAttributes() const method

Returns an array containing objects that represent all custom attributes applied to the type.

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

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

Returns an array containing objects that represent specific attributes applied to the type.

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

Arguments

ParameterTypeDescription
attributeTypeconst TypeInfo&Type of the attribute to look for.
inheritboolWhether to look for inherited attributes as well.

See Also