共用方式為


ChoiceAttribute 類別

定義

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
繼承
ChoiceAttribute
屬性

建構函式

ChoiceAttribute(Object[])

建立 candidatesChoiceAttribute

ChoiceAttribute(Object[], Object)

使用 candidatesdefaultValue建立 ChoiceAttribute

屬性

Candidates

取得此選項的候選專案。

DefaultValue

取得這個選項的預設值。

適用於