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 Assembly, _ ByVal attributeType As Type _ ) As Attribute [C#] public static Attribute GetCustomAttribute( Assembly element, Type attributeType ); [C++] public: static Attribute* GetCustomAttribute( Assembly* element, Type* attributeType ); [JScript] public static function GetCustomAttribute( element : Assembly, attributeType : Type ) : Attribute;
An instance of attributeType that was assigned to this assembly 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