RemoteAttribute::GetClientValidationRules Method (ModelMetadata^, ControllerContext^)

 

Gets a list of client validation rules for the property.

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

public:
virtual IEnumerable<ModelClientValidationRule^>^ GetClientValidationRules(
	ModelMetadata^ metadata,
	ControllerContext^ context
) sealed

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.

Return to top
Show: