AttributeTableBuilder.AddCustomAttributes Method (Type, MemberInfo, 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 this builder.

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

Syntax

'Declaration
Public Sub AddCustomAttributes ( _
    ownerType As Type, _
    member As MemberInfo, _
    ParamArray attributes As Attribute() _
)
'Usage
Dim instance As AttributeTableBuilder
Dim ownerType As Type
Dim member As MemberInfo
Dim attributes As Attribute()

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

Parameters

  • ownerType
    Type: System.Type
    The type that contains the member identified by member.
  • attributes
    Type: array<System.Attribute[]
    The attributes that are added to the builder.

Exceptions

Exception Condition
[T:System. ArgumentNullException]

ownerType, member or attributes is nulla null reference (Nothing in Visual Basic).

Remarks

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(Type, AttributeCallback) to defer the work of creating attributes until they are needed.

.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

AttributeTableBuilder Class

AttributeTableBuilder Members

AddCustomAttributes Overload

System.Activities.Design.Metadata Namespace