AttributeCallbackBuilder.AddCustomAttributes Method (MemberDescriptor, array<Attribute[])

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

Namespace:  System.Activities.Design.Metadata
Assembly:  System.Activities.Design.Base (in System.Activities.Design.Base.dll)

Syntax

'Declaration
Public Sub AddCustomAttributes ( _
    descriptor As MemberDescriptor, _
    ParamArray attributes As Attribute() _
)
'Usage
Dim instance As AttributeCallbackBuilder
Dim descriptor As MemberDescriptor
Dim attributes As Attribute()

instance.AddCustomAttributes(descriptor, _
    attributes)
public void AddCustomAttributes(
    MemberDescriptor descriptor,
    params Attribute[] attributes
)
public:
void AddCustomAttributes(
    MemberDescriptor^ descriptor, 
    ... array<Attribute^>^ attributes
)
public function AddCustomAttributes(
    descriptor : MemberDescriptor, 
    ... attributes : Attribute[]
)
member AddCustomAttributes : 
        descriptor:MemberDescriptor * 
        attributes:Attribute[] -> unit 

Parameters

  • attributes
    Type: array<System.Attribute[]
    The attributes that are added to the table.

Exceptions

Exception Condition
ArgumentNullException

descriptor or attributes is nulla null reference (Nothing in Visual Basic).

Remarks

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 Security

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 4

See Also

Reference

AttributeCallbackBuilder Class

AttributeCallbackBuilder Members

AddCustomAttributes Overload

System.Activities.Design.Metadata Namespace