This documentation is archived and is not being maintained.

ICustomAttributeProvider.IsDefined Method

Indicates whether one or more instance of attributeType is defined on this member.

[Visual Basic]
Function IsDefined( _
   ByVal attributeType As Type, _
   ByVal inherit As Boolean _
) As Boolean
bool IsDefined(
   Type attributeType,
 bool inherit
bool IsDefined(
   Type* attributeType,
 bool inherit
function IsDefined(
   attributeType : Type,
 inherit : Boolean
) : Boolean;


The type of the custom attributes.
When true, look up the hierarchy chain for the inherited custom attribute.

Return Value

true if the attributeType is defined on this member; false otherwise.


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

See Also

ICustomAttributeProvider Interface | ICustomAttributeProvider Members | System.Reflection Namespace