PropertyInformation.IsRequired 속성

정의

구성 특성이 필요한지 여부를 지정하는 값을 가져옵니다.

public:
 property bool IsRequired { bool get(); };
public bool IsRequired { get; }
member this.IsRequired : bool
Public ReadOnly Property IsRequired As Boolean

속성 값

PropertyInformation 개체가 필요하면 true이고, 그렇지 않으면 false입니다.

예제

다음 코드 예제를 사용 하는 방법에 설명 합니다 IsRequired 속성입니다. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 PropertyInformation 클래스입니다.

// Display the IsRequired property.
Console.WriteLine("IsRequired: {0}", propertyItem.IsRequired);
' Display the IsRequired property.
Console.WriteLine("IsRequired: {0}", propertyItem.IsRequired)

적용 대상