Return an array of custom attributes identified by Type.
[Visual Basic] Overloads Function GetCustomAttributes( _ ByVal attributeType As Type _ ) As Object () [C#] object[] GetCustomAttributes( Type attributeType ); [C++] Object* GetCustomAttributes( Type* attributeType ) [] = 0; [JScript] function GetCustomAttributes( attributeType : Type ) : Object[];
An array of custom attributes identified by Type.
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