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