Observação
O acesso a essa página exige autorização. Você pode tentar entrar ou alterar diretórios.
O acesso a essa página exige autorização. Você pode tentar alterar os diretórios.
Registers an adapter factory for the validation provider.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Shared Sub RegisterAdapterFactory ( _
attributeType As Type, _
factory As DataAnnotationsModelValidationFactory _
)
public static void RegisterAdapterFactory(
Type attributeType,
DataAnnotationsModelValidationFactory factory
)
public:
static void RegisterAdapterFactory(
Type^ attributeType,
DataAnnotationsModelValidationFactory^ factory
)
Parameters
- attributeType
Type: System.Type
The type of the attribute.
- factory
Type: System.Web.Mvc.DataAnnotationsModelValidationFactory
The factory that will be used to create the ModelValidator object for the specified attribute.