Class MvcFormExtensions

Extensions for System.Web.Mvc.Html.MvcForm.

Inheritance
System.Object
MvcFormExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Mvc.XForms
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public static class MvcFormExtensions

Methods

AddClientValidationRules(MvcForm, FormContext, IEnumerable<ValidationRuleDescriptor>)

Adds client validation rules to the metadata.

Declaration
public static MvcForm AddClientValidationRules(this MvcForm form, FormContext formContext, IEnumerable<ValidationRuleDescriptor> validationRuleDescriptors)
Parameters
Type Name Description
System.Web.Mvc.Html.MvcForm form

The mvc form

System.Web.Mvc.FormContext formContext

The form context

System.Collections.Generic.IEnumerable<ValidationRuleDescriptor> validationRuleDescriptors

The validation rules to add

Returns
Type Description
System.Web.Mvc.Html.MvcForm