다음을 통해 공유


ConstructorInfoWrapper.IsDefined Method

Determines whether one or more attributes of the specified type or of its derived types is applied to this member.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Declaration
Public Overrides Function IsDefined ( _
    attributeType As Type, _
    inherit As Boolean _
) As Boolean
public override bool IsDefined(
    Type attributeType,
    bool inherit
)
public:
virtual bool IsDefined(
    Type^ attributeType, 
    bool inherit
) override
abstract IsDefined : 
        attributeType:Type * 
        inherit:bool -> bool  
override IsDefined : 
        attributeType:Type * 
        inherit:bool -> bool
public override function IsDefined(
    attributeType : Type, 
    inherit : boolean
) : boolean

Parameters

  • attributeType
    Type: Type

    The type of custom attribute to search for. The search includes derived types.

  • inherit
    Type: Boolean

    true to search this member's inheritance chain to find the attributes; otherwise, false.

Return Value

Type: Boolean
Returns Boolean.

Implements

ICustomAttributeProvider.IsDefined(Type, Boolean)
_MemberInfo.IsDefined(Type, Boolean)

.NET Framework Security

See Also

Reference

ConstructorInfoWrapper Class

Microsoft.VisualStudio.Shell.Design Namespace