AssociatedValidatorProvider.GetValidators Method (ModelMetadata, ControllerContext)

Gets the validators for the model using the metadata and controller context.

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

Syntax

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

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ModelValidator>
The validators for the model.

See Also

Reference

AssociatedValidatorProvider Class

GetValidators Overload

System.Web.Mvc Namespace