AttributeTable.GetCustomAttributes Method (Type, MemberDescriptor)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Activities.Presentation.Metadata
Assembly:  System.Activities.Presentation (in System.Activities.Presentation.dll)

public IEnumerable GetCustomAttributes(
	Type ownerType,
	MemberDescriptor descriptor
)

Parameters

ownerType
Type: System.Type

The type that contains the member.

descriptor
Type: System.ComponentModel.MemberDescriptor

A member descriptor to get custom attributes for.

Return Value

Type: System.Collections.IEnumerable

An enumeration of attributes that match the criteria. This will never return a null enumeration.

Exception Condition
ArgumentNullException

ownerType or descriptor is null.

.NET Framework
Available since 4.0
Return to top
Show: