Condividi tramite


AttributeCallbackBuilder.AddCustomAttributes Metodo

Definizione

Aggiunge il contenuto degli attributi forniti alla tabella di attributi che ha creato questo generatore.

Overload

AddCustomAttributes(Attribute[])

Aggiunge il contenuto degli attributi forniti alla tabella di attributi che ha creato questo generatore.

AddCustomAttributes(MemberDescriptor, Attribute[])

Aggiunge il contenuto degli attributi forniti alla tabella di attributi che ha creato questo generatore.

AddCustomAttributes(MemberInfo, Attribute[])

Aggiunge il contenuto degli attributi forniti alla tabella di attributi che ha creato questo generatore.

AddCustomAttributes(String, Attribute[])

Aggiunge il contenuto degli attributi forniti alla tabella di attributi che ha creato questo generatore.

AddCustomAttributes(DependencyProperty, Attribute[])

Aggiunge il contenuto degli attributi forniti alla tabella di attributi che ha creato questo generatore.

Commenti

Se un attributo è in conflitto con un altro attributo già incluso nella tabella, l'ultimo attributo aggiunto sostituisce quelli precedenti.

Gli attributi possono essere aggiunti solo al tipo specificato da CallbackType.

AddCustomAttributes(Attribute[])

Aggiunge il contenuto degli attributi forniti alla tabella di attributi che ha creato questo generatore.

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())

Parametri

attributes
Attribute[]

Attributi aggiunti alla tabella.

Eccezioni

attributes è null.

Commenti

Se un attributo è in conflitto con un altro attributo già incluso nella tabella, l'ultimo attributo aggiunto sostituisce quelli precedenti.

Gli attributi possono essere aggiunti solo al tipo specificato da CallbackType.

Si applica a

AddCustomAttributes(MemberDescriptor, Attribute[])

Aggiunge il contenuto degli attributi forniti alla tabella di attributi che ha creato questo generatore.

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())

Parametri

descriptor
MemberDescriptor

Membro a cui vengono aggiunti gli attributi.

attributes
Attribute[]

Attributi aggiunti alla tabella.

Eccezioni

descriptor o attributes è null.

Commenti

Se un attributo è in conflitto con un altro attributo già incluso nella tabella, l'ultimo attributo aggiunto sostituisce quelli precedenti.

Gli attributi possono essere aggiunti solo al tipo specificato da CallbackType.

Si applica a

AddCustomAttributes(MemberInfo, Attribute[])

Aggiunge il contenuto degli attributi forniti alla tabella di attributi che ha creato questo generatore.

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())

Parametri

member
MemberInfo

Membro a cui vengono aggiunti gli attributi.

attributes
Attribute[]

Attributi aggiunti alla tabella.

Eccezioni

member o attributes è null.

Commenti

Se un attributo è in conflitto con un altro attributo già incluso nella tabella, l'ultimo attributo aggiunto sostituisce quelli precedenti.

Gli attributi possono essere aggiunti solo al tipo specificato da CallbackType.

Si applica a

AddCustomAttributes(String, Attribute[])

Aggiunge il contenuto degli attributi forniti alla tabella di attributi che ha creato questo generatore.

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())

Parametri

memberName
String

Nome del membro a cui vengono aggiunti gli attributi.

attributes
Attribute[]

Attributi aggiunti alla tabella.

Eccezioni

memberName o attributes è null.

Commenti

Se un attributo è in conflitto con un altro attributo già incluso nella tabella, l'ultimo attributo aggiunto sostituisce quelli precedenti.

Gli attributi possono essere aggiunti solo al tipo specificato da CallbackType.

Si applica a

AddCustomAttributes(DependencyProperty, Attribute[])

Aggiunge il contenuto degli attributi forniti alla tabella di attributi che ha creato questo generatore.

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())

Parametri

dp
DependencyProperty

Dipendenza a cui vengono aggiunti gli attributi.

attributes
Attribute[]

Attributi aggiunti alla tabella.

Eccezioni

dp o attributes è null.

Commenti

Se un attributo è in conflitto con un altro attributo già incluso nella tabella, l'ultimo attributo aggiunto sostituisce quelli precedenti.

Gli attributi possono essere aggiunti solo al tipo specificato da CallbackType.

Si applica a