DataAnnotationsModelValidator<TAttribute> クラス

定義

指定した検証型のモデル検証コントロールを提供します。

public class DataAnnotationsModelValidator<TAttribute> : System.Web.Mvc.DataAnnotationsModelValidator where TAttribute : ValidationAttribute
type DataAnnotationsModelValidator<'Attribute (requires 'Attribute :> ValidationAttribute)> = class
    inherit DataAnnotationsModelValidator
Public Class DataAnnotationsModelValidator(Of TAttribute)
Inherits DataAnnotationsModelValidator

型パラメーター

TAttribute
継承
DataAnnotationsModelValidator<TAttribute>
派生

コンストラクター

DataAnnotationsModelValidator<TAttribute>(ModelMetadata, ControllerContext, TAttribute)

DataAnnotationsModelValidator クラスの新しいインスタンスを初期化します。

プロパティ

Attribute

モデルの検証コントロールから検証属性を取得します。

ControllerContext

コントローラー コンテキストを取得します。

(継承元 ModelValidator)
ErrorMessage

検証エラーのエラー メッセージを取得します。

(継承元 DataAnnotationsModelValidator)
IsRequired

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

(継承元 DataAnnotationsModelValidator)
Metadata

モデルの検証コントロール用のメタデータを取得します。

(継承元 ModelValidator)

メソッド

GetClientValidationRules()

クライアント検証規則のコレクションを取得します。

(継承元 DataAnnotationsModelValidator)
Validate(Object)

モデルの検証エラー メッセージの一覧を返します。

(継承元 DataAnnotationsModelValidator)

適用対象