ModelValidatorProviderCollection.GetValidators(ModelMetadata, ControllerContext) Method

Definition

Returns the list of model validators.

public System.Collections.Generic.IEnumerable<System.Web.Mvc.ModelValidator> GetValidators (System.Web.Mvc.ModelMetadata metadata, System.Web.Mvc.ControllerContext context);
member this.GetValidators : System.Web.Mvc.ModelMetadata * System.Web.Mvc.ControllerContext -> seq<System.Web.Mvc.ModelValidator>
Public Iterator Function GetValidators (metadata As ModelMetadata, context As ControllerContext) As IEnumerable(Of ModelValidator)

Parameters

metadata
ModelMetadata

The model metadata.

context
ControllerContext

The controller context.

Returns

The list of model validators.

Applies to