Share via


DataAnnotationsModelValidatorProvider.RegisterAdapterFactory Methode

Definition

Registriert eine Adapterfactory für den Validierungsanbieter.

public static void RegisterAdapterFactory (Type attributeType, System.Web.Mvc.DataAnnotationsModelValidationFactory factory);
static member RegisterAdapterFactory : Type * System.Web.Mvc.DataAnnotationsModelValidationFactory -> unit
Public Shared Sub RegisterAdapterFactory (attributeType As Type, factory As DataAnnotationsModelValidationFactory)

Parameter

attributeType
Type

Der Typ des Attributs.

factory
DataAnnotationsModelValidationFactory

Die Factory, die zum Erstellen des ModelValidator Objekts für das angegebene Attribut verwendet wird.

Gilt für: