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

获取此选项的默认值。

适用于