Returns all the custom attributes defined for this type.
[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 objects representing all the custom attributes of this type.
Exception Type | Condition |
---|---|
TypeLoadException | if the custom attribute type can not be loaded. |
TypeBuilder Class | TypeBuilder Members | System.Reflection.Emit Namespace | TypeBuilder.GetCustomAttributes Overload List