NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Assembly.IsDefined

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;

Parameters

attributeType
The Type for which the custom attributes is to be checked.

Return Value

Returns true if a custom attribute identified by the specified Type is defined. Otherwise, returns false.

Exceptions

Exception Type Condition
ArgumentNullException if attributeType is a null reference (in Visual Basic Nothing).

See Also

Assembly Class | Assembly Members | System.Reflection Namespace