Compartilhar via


ChoiceAttribute Classe

Definição

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

Construtores

ChoiceAttribute(Object[])

Crie um ChoiceAttribute com candidates.

ChoiceAttribute(Object[], Object)

Crie um ChoiceAttribute com candidates e defaultValue.

Propriedades

Candidates

Obtenha os candidatos dessa opção.

DefaultValue

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

Aplica-se a