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。 既定値は、null 非許容値型に対して true され、その他のすべての型に対して false されます。

適用対象