DataAnnotationsModelValidatorProvider クラス

定義

ASP.NET MVC 用の既定の検証プロバイダーを実装します。

public class DataAnnotationsModelValidatorProvider : System.Web.Mvc.AssociatedValidatorProvider
type DataAnnotationsModelValidatorProvider = class
    inherit AssociatedValidatorProvider
Public Class DataAnnotationsModelValidatorProvider
Inherits AssociatedValidatorProvider
継承
DataAnnotationsModelValidatorProvider

コンストラクター

DataAnnotationsModelValidatorProvider()

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

プロパティ

AddImplicitRequiredAttributeForValueTypes

null 非許容値型が必要かどうかを示す値を取得または設定します。

メソッド

GetTypeDescriptor(Type)

指定した型の型記述子を取得します。

(継承元 AssociatedValidatorProvider)
GetValidators(ModelMetadata, ControllerContext)

メタデータおよびコントローラー コンテキストを使用して、モデルの検証コントロールを取得します。

(継承元 AssociatedValidatorProvider)
GetValidators(ModelMetadata, ControllerContext, IEnumerable<Attribute>)

検証コントロールの一覧を取得します。

RegisterAdapter(Type, Type)

クライアント側の検証を行うアダプターを登録します。

RegisterAdapterFactory(Type, DataAnnotationsModelValidationFactory)

検証プロバイダー用のアダプター ファクトリを登録します。

RegisterDefaultAdapter(Type)

既定のアダプターを登録します。

RegisterDefaultAdapterFactory(DataAnnotationsModelValidationFactory)

既定のアダプター ファクトリを登録します。

RegisterDefaultValidatableObjectAdapter(Type)

既定のオブジェクト検証を行うアダプターを登録します。

RegisterDefaultValidatableObjectAdapterFactory(DataAnnotationsValidatableObjectAdapterFactory)

既定のオブジェクト検証プロバイダー用のアダプター ファクトリを登録します。

RegisterValidatableObjectAdapter(Type, Type)

オブジェクト検証を行うアダプターを登録します。

RegisterValidatableObjectAdapterFactory(Type, DataAnnotationsValidatableObjectAdapterFactory)

オブジェクト検証プロバイダー用のアダプター ファクトリを登録します。

適用対象