IsDefined Method

Assembly.IsDefined Method

Indicates whether a custom attribute identified by the specified Type is defined.

[Visual Basic]
Public Overridable Function IsDefined( _
   ByVal attributeType As Type, _
   ByVal inherit As Boolean _
) As Boolean Implements ICustomAttributeProvider.IsDefined
[C#]
public virtual bool IsDefined(
 Type attributeType,
 bool inherit
);
[C++]
public: virtual bool IsDefined(
 Type* attributeType,
 bool inherit
);
[JScript]
public function IsDefined(
   attributeType : Type,
 inherit : Boolean
) : Boolean;

Parameters

attributeType
The Type of the custom attribute to be checked for this assembly.
inherit
This argument is ignored for objects of this type.

Return Value

true if a custom attribute identified by the specified Type is defined; otherwise, false.

Implements

ICustomAttributeProvider.IsDefined

Exceptions

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

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

Assembly Class | Assembly Members | System.Reflection Namespace

Show:
© 2016 Microsoft