Checks if a custom attribute identified by the specified Type is defined.
[Visual Basic] Overridable Public Function IsDefined( _ ByVal attributeType As Type _ ) As Boolean [C#] public virtual bool IsDefined( Type attributeType ); [C++] public: virtual bool IsDefined( Type* attributeType ); [JScript] public function IsDefined( attributeType : Type ) : Boolean;
Returns true if a custom attribute identified by the specified Type is defined. Otherwise, returns false.
Exception Type | Condition |
---|---|
ArgumentNullException | if attributeType is a null reference (in Visual Basic Nothing). |
Assembly Class | Assembly Members | System.Reflection Namespace