Export (0) Print
Expand All

AttributeTable.GetCustomAttributes Method (Type, DependencyProperty)

.NET Framework 4.6 and 4.5

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.

ExceptionCondition
ArgumentNullException

ownerType or dp is null.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft