Return an array of all of the custom attributes, excluding named attributes.
[Visual Basic] Overloads Function GetCustomAttributes() As Object () [C#] object[] GetCustomAttributes(); [C++] Object* GetCustomAttributes() [] = 0; [JScript] function GetCustomAttributes() : Object[];
Returns an array of Objects representing the attributes defined on this member.
Exception Type | Condition |
---|---|
TypeLoadException | The custom attribute type can not be loaded. |
TypeLoadException | if the custom attribute type can not be loaded. |
If no attributes are defined for this member, an empty array is returned.
ICustomAttributeProvider Interface | ICustomAttributeProvider Members | System.Reflection Namespace | ICustomAttributeProvider.GetCustomAttributes Overload List