Freigeben über


ModelValidatorProviderCollection.GetValidators Method

Returns the list of model validators.

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

Syntax

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

Parameters

Return Value

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

See Also

Reference

ModelValidatorProviderCollection Class

System.Web.Mvc Namespace