Language

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[], Object)

candidatesとdefaultValueを使用してChoiceAttributeを作成します。

ChoiceAttribute(Object[])

candidatesを使用してChoiceAttributeを作成します。

プロパティ

名前 説明
Candidates

このオプションの候補を取得します。

DefaultValue

このオプションの既定値を取得します。

適用対象