GetCustomAttributes Method (Type, MemberInfo)

AttributeTable.GetCustomAttributes Method (Type, MemberInfo)

.NET Framework (current version)
 

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,
	MemberInfo member
)

Parameters

ownerType
Type: System.Type

The type that contains the member.

member
Type: System.Reflection.MemberInfo

The member to provide 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 member is null.

.NET Framework
Available since 4.0
Return to top
Show:
© 2016 Microsoft