ChoiceAttribute Classe

Definizione

Attributo Choice

[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=false)]
public sealed class ChoiceAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=false)>]
type ChoiceAttribute = class
    inherit Attribute
Public NotInheritable Class ChoiceAttribute
Inherits Attribute
Ereditarietà
ChoiceAttribute
Attributi

Costruttori

Nome Descrizione
ChoiceAttribute(Object[], Object)

Creare un ChoiceAttribute oggetto con candidates e defaultValue.

ChoiceAttribute(Object[])

Creare un ChoiceAttribute oggetto con candidates.

Proprietà

Nome Descrizione
Candidates

Ottenere i candidati di questa opzione.

DefaultValue

Ottiene il valore predefinito di questa opzione.

Si applica a