Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.

 

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: 7.19.2
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