Sdílet prostřednictvím


ModelValidatorProviderCollection.GetValidators Metoda

Definice

Vrátí kolekci validátorů.

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

Parametry

metadata
ModelMetadata

Metadata.

context
ModelBindingExecutionContext

Kontext spuštění.

Návraty

IEnumerable<ModelValidator>

Validátory.

Platí pro