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
[C#]
bool IsDefined(
   Type attributeType,
 bool inherit
);
[C++]
bool IsDefined(
   Type* attributeType,
 bool inherit
);
[JScript]
function IsDefined(
   attributeType : Type,
 inherit : Boolean
) : Boolean;

Parameters

attributeType
The type of the custom attributes.
inherit
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.

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 Compact Framework

See Also

ICustomAttributeProvider Interface | ICustomAttributeProvider Members | System.Reflection Namespace

Show: