ModelMetadata.IsRequired 속성

정의

속성이 필요한지 여부를 지정하는 값을 가져오거나 설정합니다.

public:
 virtual property bool IsRequired { bool get(); void set(bool value); };
public virtual bool IsRequired { get; set; }
member this.IsRequired : bool with get, set
Public Overridable Property IsRequired As Boolean

속성 값

true속성이 필요한 경우 그렇지 않으면 . false 기본값은 true nullable이 아닌 값 형식 및 false 다른 모든 형식에 대한 것입니다.

적용 대상