DataAnnotationsModelValidator.IsRequired プロパティ

定義

モデルが必要かどうかを示す値を取得します (つまり、 Attribute プロパティの検証属性が RequiredAttribute 属性であるかどうかを示します)。

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

プロパティ値

true モデルが必要な場合。それ以外の場合は false

適用対象