次の方法で共有


DataAnnotationsModelValidator.IsRequired プロパティ

定義

モデルの検証が必要であるかどうかを示す値を取得します。

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

プロパティ値

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

適用対象