Compartilhar via


ModelValidatorProvider.GetValidators Method

Gets a list of validators.

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

Syntax

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

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ModelValidator>
A list of validators.

See Also

Reference

ModelValidatorProvider Class

System.Web.Mvc Namespace