Partager via


ClientDataTypeModelValidatorProvider.GetValidators Method

Returns the client data-type model validators.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Overrides Function GetValidators ( _
    metadata As ModelMetadata, _
    context As ControllerContext _
) As IEnumerable(Of ModelValidator)
public override IEnumerable<ModelValidator> GetValidators(
    ModelMetadata metadata,
    ControllerContext context
)
public:
virtual IEnumerable<ModelValidator^>^ GetValidators(
    ModelMetadata^ metadata, 
    ControllerContext^ context
) override

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ModelValidator>
The client data-type model validators.

See Also

Reference

ClientDataTypeModelValidatorProvider Class

System.Web.Mvc Namespace