Lenguaje

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

Nombre Description
ChoiceAttribute(Object[], Object)

Cree un ChoiceAttribute con candidates y defaultValue.

ChoiceAttribute(Object[])

Cree un ChoiceAttribute objeto con candidates.

Propiedades

Nombre Description
Candidates

Obtenga los candidatos de esta opción.

DefaultValue

Obtenga el valor predeterminado de esta opción.

Se aplica a