Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

AssociatedValidatorProvider::GetValidators Method (ModelMetadata, ControllerContext, IEnumerable<Attribute>)

Gets the validators for the model using the metadata, the controller context, and a list of attributes.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
protected:
virtual IEnumerable<ModelValidator^>^ GetValidators(
	ModelMetadata^ metadata, 
	ControllerContext^ context, 
	IEnumerable<Attribute^>^ attributes
) abstract

Parameters

metadata
Type: System.Web.Mvc::ModelMetadata

The metadata.

context
Type: System.Web.Mvc::ControllerContext

The controller context.

attributes
Type: System.Collections.Generic::IEnumerable<Attribute>

The list of attributes.

Return Value

Type: System.Collections.Generic::IEnumerable<ModelValidator>
The validators for the model.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.