Microsoft.AspNetCore.Mvc.DataAnnotations 名前空間

System.ComponentModel.DataAnnotations を使用してモデル メタデータを検出し、検証を実装する型を提供します。

クラス

Name 説明
AttributeAdapterBase<TAttribute>

アダプターに必要なすべてのインターフェイスをラップする ValidationAttributeAdapter<TAttribute> の抽象サブクラス。

MvcDataAnnotationsLocalizationOptions

MVC フレームワークでの DataAnnotations ローカライズのプログラムによる構成を提供します。

RequiredAttributeAdapter

AttributeAdapterBase<TAttribute> (RequiredAttribute)。

ValidationAttributeAdapter<TAttribute>

データ注釈属性を理解する IClientModelValidator の実装。

ValidationAttributeAdapterProvider

指定した属性の IAttributeAdapter を作成します。

ValidationProviderAttribute

ValidationAttribute型の属性を 1 つにグループ化するための抽象クラスAttribute

インターフェイス

Name 説明
IAttributeAdapter

アダプターがエラー メッセージに関連する値を提供するためのインターフェイス。

IValidationAttributeAdapterProvider

IAttributeAdapterを提供するためのプロバイダー。

注釈

検証の概要については、「モデルの検証」を 参照してください。