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 final function GetClientValidationRules(
	metadata : ModelMetadata, 
	context : ControllerContext
) : IEnumerable<ModelClientValidationRule>

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