Condividi tramite


PropertyAttribute Costruttori

Definizione

Overload

PropertyAttribute()

Costruttore per le classi derivate che impostano direttamente il dizionario delle proprietà.

PropertyAttribute(Object)

Costruttore per l'uso da classi derivate che usano il nome del tipo come nome della proprietà. Le classi derivate devono assicurarsi che il tipo del valore della proprietà sia un tipo standard supportato dall'elenco di controllo BCL. Qualsiasi tipo personalizzato causerà un'eccezione di serializzazione quando nel client.

PropertyAttribute(String, Double)

Costruire un propertyAttribute con un nome e un valore doppio

PropertyAttribute(String, Int32)

Costruire un propertyAttribute con un nome e un valore int

PropertyAttribute(String, String)

Costruire una proprietàAttribute con un nome e un valore stringa

PropertyAttribute()

Costruttore per le classi derivate che impostano direttamente il dizionario delle proprietà.

protected PropertyAttribute();

Si applica a

PropertyAttribute(Object)

Costruttore per l'uso da classi derivate che usano il nome del tipo come nome della proprietà. Le classi derivate devono assicurarsi che il tipo del valore della proprietà sia un tipo standard supportato dall'elenco di controllo BCL. Qualsiasi tipo personalizzato causerà un'eccezione di serializzazione quando nel client.

protected PropertyAttribute(object propertyValue);
new NUnit.Framework.PropertyAttribute : obj -> NUnit.Framework.PropertyAttribute

Parametri

propertyValue
Object

Si applica a

PropertyAttribute(String, Double)

Costruire un propertyAttribute con un nome e un valore doppio

public PropertyAttribute(string propertyName, double propertyValue);
new NUnit.Framework.PropertyAttribute : string * double -> NUnit.Framework.PropertyAttribute

Parametri

propertyName
String

Nome della proprietà.

propertyValue
Double

Valore della proprietà

Si applica a

PropertyAttribute(String, Int32)

Costruire un propertyAttribute con un nome e un valore int

public PropertyAttribute(string propertyName, int propertyValue);
new NUnit.Framework.PropertyAttribute : string * int -> NUnit.Framework.PropertyAttribute

Parametri

propertyName
String

Nome della proprietà.

propertyValue
Int32

Valore della proprietà

Si applica a

PropertyAttribute(String, String)

Costruire una proprietàAttribute con un nome e un valore stringa

public PropertyAttribute(string propertyName, string propertyValue);
new NUnit.Framework.PropertyAttribute : string * string -> NUnit.Framework.PropertyAttribute

Parametri

propertyName
String

Nome della proprietà.

propertyValue
String

Valore della proprietà

Si applica a