Freigeben über


DataAnnotationsModelValidatorProvider.RegisterAdapterFactory Methode

Definition

Registriert eine Adapterfactory für den Validierungsanbieter.

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 verwendet wird, um das validator-Objekt für das angegebene Attribut zu erstellen.

Gilt für: