AttributeTableBuilder.AddCustomAttributes Method (Type, Attribute[])

.NET Framework (current version)
 

Adds the contents of the provided attributes to this builder.

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

public void AddCustomAttributes(
	Type type,
	params Attribute[] attributes
)

Parameters

type
Type: System.Type

The type to add class-level attributes to.

attributes
Type: System.Attribute[]

The attributes that are added to the builder.

Exception Condition
ArgumentNullException

type or attributes is null.

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

When building a large attribute table, use AddCallback to defer the work of creating attributes until they are needed.

.NET Framework
Available since 4.0
Return to top
Show: