Udostępnij za pośrednictwem


ChoiceAttribute Klasa

Definicja

Atrybut wyboru

[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
Dziedziczenie
ChoiceAttribute
Atrybuty

Konstruktory

ChoiceAttribute(Object[])

Utwórz element ChoiceAttribute za pomocą polecenia candidates.

ChoiceAttribute(Object[], Object)

Utwórz element ChoiceAttribute z elementami candidates i defaultValue.

Właściwości

Candidates

Pobierz kandydatów tej opcji.

DefaultValue

Pobierz wartość domyślną tej opcji.

Dotyczy