Sdílet prostřednictvím


ChoiceAttribute Třída

Definice

Atribut volby

[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
Dědičnost
ChoiceAttribute
Atributy

Konstruktory

ChoiceAttribute(Object[])

Vytvořte pomocí ChoiceAttributecandidates.

ChoiceAttribute(Object[], Object)

Pomocí a defaultValuevytvořte candidatesChoiceAttribute .

Vlastnosti

Candidates

Získejte kandidáty této možnosti.

DefaultValue

Získá výchozí hodnotu této možnosti.

Platí pro