Idioma

ChoiceAttribute Classe

Definição

Atributo de escolha

[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
Herança
ChoiceAttribute
Atributos

Construtores

Nome Description
ChoiceAttribute(Object[], Object)

Criar um ChoiceAttribute com candidates e defaultValue.

ChoiceAttribute(Object[])

Criar um ChoiceAttribute com candidates.

Propriedades

Nome Description
Candidates

Obtenha os candidatos dessa opção.

DefaultValue

Obtenha o valor padrão dessa opção.

Aplica-se a