DataAnnotationsModelValidatorProvider.RegisterAdapterFactory Metod

Definition

Registrerar en adapterfabrik för valideringsprovidern.

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)

Parametrar

attributeType
Type

Typ av attribut.

factory
DataAnnotationsModelValidationFactory

Den fabrik som ska användas för att skapa validatorobjektet för det angivna attributet.

Gäller för