Returns an instance of each custom attribute defined on the given TypeDelegator.
[Visual Basic] Overloads Overrides Public Function GetCustomAttributes() As Object () [C#] public override object[] GetCustomAttributes(); [C++] public: override Object* GetCustomAttributes() []; [JScript] public override function GetCustomAttributes() : Object[];
Returns an array of all the custom attributes defined on this TypeDelegator.
Exception Type | Condition |
---|---|
TypeLoadException | if the custom attribute type can not be loaded. |
Returns an empty array if non-custom attributes exists on this the given element. Ignores any attributes that don't inherit from Attribute. If a type is specified, the array returned must be an array of that type.
TypeDelegator Class | TypeDelegator Members | System.Reflection Namespace | TypeDelegator.GetCustomAttributes Overload List | Attribute