DataAnnotationsModelValidator<TAttribute> コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
DataAnnotationsModelValidator クラスの新しいインスタンスを初期化します。
public DataAnnotationsModelValidator (System.Web.Mvc.ModelMetadata metadata, System.Web.Mvc.ControllerContext context, TAttribute attribute);
new System.Web.Mvc.DataAnnotationsModelValidator<'Attribute (requires 'Attribute :> System.ComponentModel.DataAnnotations.ValidationAttribute)> : System.Web.Mvc.ModelMetadata * System.Web.Mvc.ControllerContext * 'Attribute -> System.Web.Mvc.DataAnnotationsModelValidator<'Attribute (requires 'Attribute :> System.ComponentModel.DataAnnotations.ValidationAttribute)>
Public Sub New (metadata As ModelMetadata, context As ControllerContext, attribute As TAttribute)
パラメーター
- metadata
- ModelMetadata
モデルのメタデータ。
- context
- ControllerContext
モデルのコントローラー コンテキスト。
- attribute
- TAttribute
モデルの検証属性。