Returns an instance of attributeType or a null reference (in Visual Basic Nothing) if non-exists on the given element.
[Visual Basic] Overloads Public Shared Function GetCustomAttribute( _ ByVal element As Module, _ ByVal attributeType As Type _ ) As Attribute [C#] public static Attribute GetCustomAttribute( Module element, Type attributeType ); [C++] public: static Attribute* GetCustomAttribute( Module* element, Type* attributeType ); [JScript] public static function GetCustomAttribute( element : Module, attributeType : Type ) : Attribute;
An instance of attributeType that was assigned to this module or a null reference (Nothing) if none exists.
Exception Type | Condition |
---|---|
AmbiguousMatchException | If there is more than one attribute of type attributeType defined on this element. |
Attribute Class | Attribute Members | System Namespace | Attribute.GetCustomAttribute Overload List