AssociatedValidatorProvider.GetValidators Method
Gets the validators for the model.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | GetValidators(ModelMetadata, ControllerContext) | Gets the validators for the model using the metadata and controller context.(Overrides ModelValidatorProvider.GetValidators(ModelMetadata, ControllerContext).) |
![]() | GetValidators(ModelMetadata, ControllerContext, IEnumerable<Attribute>) | Gets the validators for the model using the metadata, the controller context, and a list of attributes. |
AssociatedValidatorProvider.GetValidators Method (ModelMetadata, ControllerContext)
Gets the validators for the model using the metadata and controller context.
override GetValidators :
metadata:ModelMetadata *
context:ControllerContext -> IEnumerable<ModelValidator>
Parameters
- metadata
-
Type:
System.Web.Mvc.ModelMetadata
The metadata.
- context
-
Type:
System.Web.Mvc.ControllerContext
The controller context.
Return Value
Type: System.Collections.Generic.IEnumerable<ModelValidator>The validators for the model.
AssociatedValidatorProvider.GetValidators Method (ModelMetadata, ControllerContext, IEnumerable<Attribute>)
Gets the validators for the model using the metadata, the controller context, and a list of attributes.
abstract GetValidators :
metadata:ModelMetadata *
context:ControllerContext *
attributes:IEnumerable<Attribute> -> IEnumerable<ModelValidator>
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.
Show:

