DataAnnotationsModelValidator<TAttribute> クラス

定義

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

generic <typename TAttribute>
 where TAttribute : ValidationAttributepublic ref class DataAnnotationsModelValidator : System::Web::ModelBinding::DataAnnotationsModelValidator
public class DataAnnotationsModelValidator<TAttribute> : System.Web.ModelBinding.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, ModelBindingExecutionContext, TAttribute)

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

プロパティ

名前 説明
Attribute

検証属性を取得します。

ErrorMessage

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

(継承元 DataAnnotationsModelValidator)
IsRequired

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

(継承元 DataAnnotationsModelValidator)
Metadata

派生クラスで実装された場合は、モデル検証コントロールのメタデータを取得します。

(継承元 ModelValidator)
ModelBindingExecutionContext

派生クラスで実装された場合は、実行コンテキストを取得します。

(継承元 ModelValidator)

メソッド

名前 説明
Equals(Object)

指定したオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetLocalizedErrorMessage(String)

モデルのローカライズされたエラー メッセージを取得します。

(継承元 DataAnnotationsModelValidator)
GetLocalizedString(String, Object[])

特定の文字列のローカライズされたバージョンを取得します。

(継承元 DataAnnotationsModelValidator)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Objectの簡易コピーを作成します。

(継承元 Object)
ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)
Validate(Object)

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

(継承元 DataAnnotationsModelValidator)

適用対象