Compartilhar via


ConstructorInfoWrapper.GetCustomAttributes Method (Type, Boolean)

Gets all the custom attributes applied to this member of the specified type.

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

Syntax

'Declaration
Public Overrides Function GetCustomAttributes ( _
    attributeType As Type, _
    inherit As Boolean _
) As Object()
public override Object[] GetCustomAttributes(
    Type attributeType,
    bool inherit
)
public:
virtual array<Object^>^ GetCustomAttributes(
    Type^ attributeType, 
    bool inherit
) override
abstract GetCustomAttributes : 
        attributeType:Type * 
        inherit:bool -> Object[] 
override GetCustomAttributes : 
        attributeType:Type * 
        inherit:bool -> Object[] 
public override function GetCustomAttributes(
    attributeType : Type, 
    inherit : boolean
) : Object[]

Parameters

  • attributeType
    Type: Type

    The type of attribute

  • inherit
    Type: Boolean

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

Return Value

Type: array<Object[]
Returns Object.

Implements

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

.NET Framework Security

See Also

Reference

ConstructorInfoWrapper Class

GetCustomAttributes Overload

Microsoft.VisualStudio.Shell.Design Namespace