ChoiceAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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[]) |
创建 |
ChoiceAttribute(Object[], Object) |
使用 |
属性
Candidates |
获取此选项的候选项。 |
DefaultValue |
获取此选项的默认值。 |