AttributeTable.GetCustomAttributes Method (Type, MemberDescriptor)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns an enumeration of all attributes provided for the specified member of the specified type.

Namespace:  System.Activities.Design.Metadata
Assembly:  System.Activities.Design.Base (in System.Activities.Design.Base.dll)

Syntax

'Declaration
Public Function GetCustomAttributes ( _
    ownerType As Type, _
    descriptor As MemberDescriptor _
) As IEnumerable
'Usage
Dim instance As AttributeTable
Dim ownerType As Type
Dim descriptor As MemberDescriptor
Dim returnValue As IEnumerable

returnValue = instance.GetCustomAttributes(ownerType, _
    descriptor)
public IEnumerable GetCustomAttributes(
    Type ownerType,
    MemberDescriptor descriptor
)
public:
IEnumerable^ GetCustomAttributes(
    Type^ ownerType, 
    MemberDescriptor^ descriptor
)
public function GetCustomAttributes(
    ownerType : Type, 
    descriptor : MemberDescriptor
) : IEnumerable
member GetCustomAttributes : 
        ownerType:Type * 
        descriptor:MemberDescriptor -> IEnumerable 

Parameters

  • ownerType
    Type: System.Type
    The type that contains the member.

Return Value

Type: System.Collections.IEnumerable
An enumeration of attributes that match the criteria. This will never return a null enumeration.

Exceptions

Exception Condition
[T:System. ArgumentNullException]

ownerType or descriptor is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 4

See Also

Reference

AttributeTable Class

AttributeTable Members

GetCustomAttributes Overload

System.Activities.Design.Metadata Namespace