Compartir a través de


DataAnnotationsModelValidatorProvider.RegisterValidatableObjectAdapterFactory Método

Definición

Registra un generador del adaptador para el proveedor de validación del objeto.

public static void RegisterValidatableObjectAdapterFactory (Type modelType, System.Web.Mvc.DataAnnotationsValidatableObjectAdapterFactory factory);
static member RegisterValidatableObjectAdapterFactory : Type * System.Web.Mvc.DataAnnotationsValidatableObjectAdapterFactory -> unit
Public Shared Sub RegisterValidatableObjectAdapterFactory (modelType As Type, factory As DataAnnotationsValidatableObjectAdapterFactory)

Parámetros

modelType
Type

Tipo del modelo.

Se aplica a