Compartilhar via


FieldValidationMetadata.ValidationRules Property

Gets the client validation rules.

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

Syntax

'Declaration
Public ReadOnly Property ValidationRules As ICollection(Of ModelClientValidationRule)
    Get
public ICollection<ModelClientValidationRule> ValidationRules { get; }
public:
property ICollection<ModelClientValidationRule^>^ ValidationRules {
    ICollection<ModelClientValidationRule^>^ get ();
}

Property Value

Type: System.Collections.Generic.ICollection<ModelClientValidationRule>
The client validation rules.

Remarks

This method is called by the ValidationMessage method when client validation is enabled. You typically do not have to use this property directly.

See Also

Reference

FieldValidationMetadata Class

System.Web.Mvc Namespace