Export (0) Print
Expand All

RemoteAttribute.GetClientValidationRules Method

Gets a list of client validation rules for the property.

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

public IEnumerable<ModelClientValidationRule> GetClientValidationRules(
	ModelMetadata metadata,
	ControllerContext context
)

Parameters

metadata
Type: System.Web.Mvc.ModelMetadata
The model metadata.
context
Type: System.Web.Mvc.ControllerContext
The controller context.

Return Value

Type: System.Collections.Generic.IEnumerable<ModelClientValidationRule>
A list of remote client validation rules for the property.

Implements

IClientValidatable.GetClientValidationRules(ModelMetadata, ControllerContext)
Show:
© 2014 Microsoft