AttributeTable.GetCustomAttributes Method (Type, DependencyProperty)

.NET Framework (current version)
 

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

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

public IEnumerable GetCustomAttributes(
	Type ownerType,
	DependencyProperty dp
)

Parameters

ownerType
Type: System.Type

The owner type of the dependency property.

dp
Type: System.Windows.DependencyProperty

A dependency property 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 dp is null.

.NET Framework
Available since 4.0
Return to top
Show: