ChoiceAttribute Třída

Definice

Atribut volby

[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=false)]
public sealed class ChoiceAttribute : 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

Produkt Verze
ML.NET 4.0.0