DataAnnotationsModelValidator<TAttribute> Konstruktor
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Initialisiert eine neue Instanz der DataAnnotationsModelValidator-Klasse.
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)
Parameter
- metadata
- ModelMetadata
Die Metadaten für das Modell.
- context
- ControllerContext
Der Controllerkontext für das Modell.
- attribute
- TAttribute
Das Validierungsattribut für das Modell.