Compartir a través de


ChoiceAttribute Clase

Definición

Atributo 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
Herencia
ChoiceAttribute
Atributos

Constructores

ChoiceAttribute(Object[])

Cree un elemento ChoiceAttribute con candidates.

ChoiceAttribute(Object[], Object)

Cree un ChoiceAttribute objeto con candidates y defaultValue.

Propiedades

Candidates

Obtenga los candidatos de esta opción.

DefaultValue

Obtenga el valor predeterminado de esta opción.

Se aplica a