DataAnnotationsModelValidatorProvider.RegisterAdapterFactory Methode

Definition

Registriert eine Adapterfactory für den Überprüfungsanbieter.

public:
 static void RegisterAdapterFactory(Type ^ attributeType, System::Web::ModelBinding::DataAnnotationsModelValidationFactory ^ factory);
public static void RegisterAdapterFactory(Type attributeType, System.Web.ModelBinding.DataAnnotationsModelValidationFactory factory);
static member RegisterAdapterFactory : Type * System.Web.ModelBinding.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 Validatorobjekts für das angegebene Attribut verwendet wird.

Gilt für: