Επεξεργασία

Κοινή χρήση μέσω


AttributeCallbackBuilder.AddCustomAttributes Method

Definition

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

Overloads

AddCustomAttributes(Attribute[])

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

AddCustomAttributes(MemberDescriptor, Attribute[])

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

AddCustomAttributes(MemberInfo, Attribute[])

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

AddCustomAttributes(String, Attribute[])

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

AddCustomAttributes(DependencyProperty, Attribute[])

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

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.

AddCustomAttributes(Attribute[])

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

public:
 void AddCustomAttributes(... cli::array <Attribute ^> ^ attributes);
public void AddCustomAttributes (params Attribute[] attributes);
member this.AddCustomAttributes : Attribute[] -> unit
Public Sub AddCustomAttributes (ParamArray attributes As Attribute())

Parameters

attributes
Attribute[]

The attributes that are added to the table.

Exceptions

attributes is null.

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.

Applies to

AddCustomAttributes(MemberDescriptor, Attribute[])

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

public:
 void AddCustomAttributes(System::ComponentModel::MemberDescriptor ^ descriptor, ... cli::array <Attribute ^> ^ attributes);
public void AddCustomAttributes (System.ComponentModel.MemberDescriptor descriptor, params Attribute[] attributes);
member this.AddCustomAttributes : System.ComponentModel.MemberDescriptor * Attribute[] -> unit
Public Sub AddCustomAttributes (descriptor As MemberDescriptor, ParamArray attributes As Attribute())

Parameters

descriptor
MemberDescriptor

The member to which the attributes are added.

attributes
Attribute[]

The attributes that are added to the table.

Exceptions

descriptor or attributes is null.

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.

Applies to

AddCustomAttributes(MemberInfo, Attribute[])

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

public:
 void AddCustomAttributes(System::Reflection::MemberInfo ^ member, ... cli::array <Attribute ^> ^ attributes);
public void AddCustomAttributes (System.Reflection.MemberInfo member, params Attribute[] attributes);
member this.AddCustomAttributes : System.Reflection.MemberInfo * Attribute[] -> unit
Public Sub AddCustomAttributes (member As MemberInfo, ParamArray attributes As Attribute())

Parameters

member
MemberInfo

The member to which the attributes are added.

attributes
Attribute[]

The attributes that are added to the table.

Exceptions

member or attributes is null.

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.

Applies to

AddCustomAttributes(String, Attribute[])

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

public:
 void AddCustomAttributes(System::String ^ memberName, ... cli::array <Attribute ^> ^ attributes);
public void AddCustomAttributes (string memberName, params Attribute[] attributes);
member this.AddCustomAttributes : string * Attribute[] -> unit
Public Sub AddCustomAttributes (memberName As String, ParamArray attributes As Attribute())

Parameters

memberName
String

The name of the member to which the attributes are added.

attributes
Attribute[]

The attributes that are added to the table.

Exceptions

memberName or attributes is null.

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.

Applies to

AddCustomAttributes(DependencyProperty, Attribute[])

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

public:
 void AddCustomAttributes(System::Windows::DependencyProperty ^ dp, ... cli::array <Attribute ^> ^ attributes);
public void AddCustomAttributes (System.Windows.DependencyProperty dp, params Attribute[] attributes);
member this.AddCustomAttributes : System.Windows.DependencyProperty * Attribute[] -> unit
Public Sub AddCustomAttributes (dp As DependencyProperty, ParamArray attributes As Attribute())

Parameters

dp
DependencyProperty

The dependency to which the attributes are added.

attributes
Attribute[]

The attributes that are added to the table.

Exceptions

dp or attributes is null.

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.

Applies to