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)

Syntax

public IEnumerable<ModelClientValidationRule> GetClientValidationRules(
    ModelMetadata metadata,
    ControllerContext context
)
public:
virtual IEnumerable<ModelClientValidationRule^>^ GetClientValidationRules(
    ModelMetadata^ metadata,
    ControllerContext^ context
) sealed
abstract GetClientValidationRules : 
        metadata:ModelMetadata *
        context:ControllerContext -> IEnumerable<ModelClientValidationRule>
override GetClientValidationRules : 
        metadata:ModelMetadata *
        context:ControllerContext -> IEnumerable<ModelClientValidationRule>
Public Function GetClientValidationRules (
    metadata As ModelMetadata,
    context As ControllerContext
) As IEnumerable(Of ModelClientValidationRule)

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ModelClientValidationRule>

A list of remote client validation rules for the property.

Implements

IClientValidatable.GetClientValidationRules(ModelMetadata, ControllerContext)

See Also

RemoteAttribute Class
System.Web.Mvc Namespace

Return to top