_Type.IsDefined Method (Type, Boolean)

 

Provides COM objects with version-independent access to the MemberInfo.IsDefined method.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

abstract IsDefined : 
        attributeType:Type *
        inherit:bool -> bool

Parameters

attributeType
Type: System.Type

The Type object to which the custom attributes are applied.

inherit
Type: System.Boolean

Specifies whether to search this member's inheritance chain to find the attributes.

Return Value

Type: System.Boolean

true if one or more instance of attributeType is applied to this member; otherwise, false.

This method is for access to managed classes from unmanaged code, and should not be called from managed code.

The MemberInfo.IsDefined method indicates whether one or more instance of attributeType is applied to this member.

.NET Framework
Available since 1.1
Return to top
Show: