AttributeCallbackBuilder.AddCustomAttributes Method (DependencyProperty, Attribute[])

.NET Framework (current version)

Adds the contents of the provided attributes to the attribute table that created this builder.

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

public void AddCustomAttributes(
	DependencyProperty dp,
	params Attribute[] attributes


Type: System.Windows.DependencyProperty

The dependency to which the attributes are added.

Type: System.Attribute[]

The attributes that are added to the table.

Exception Condition

dp or attributes is null.

If an attribute conflicts with another attribute already included in the table, the last attribute added replaces previous attributes.

Attributes can be added only to the type specified by CallbackType.

.NET Framework
Available since 4.0
Return to top