다음을 통해 공유


ChoiceAttribute 클래스

정의

선택 특성

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

candidates를 사용하여 ChoiceAttribute을 만듭니다.

ChoiceAttribute(Object[], Object)

defaultValue를 사용하여 을 ChoiceAttributecandidates 만듭니다.

속성

Candidates

이 옵션의 후보를 가져옵니다.

DefaultValue

이 옵션의 기본값을 가져옵니다.

적용 대상