Class XFormClientValidationHelper

XForm validation helpers.

Inheritance
System.Object
XFormClientValidationHelper
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 class XFormClientValidationHelper

Constructors

XFormClientValidationHelper()

Declaration
public XFormClientValidationHelper()

Methods

CreateClientValidationRules(PropertyXForm, LocalizationService)

Creates client validation rule

Declaration
public static ValidationRuleDescriptorCollection CreateClientValidationRules(PropertyXForm model, LocalizationService localizationService)
Parameters
Type Name Description
PropertyXForm model

The xform property.

LocalizationService localizationService

The resource locator that should be used by the method to get localized strings.

Returns
Type Description
ValidationRuleDescriptorCollection

A collection of validation rules for the given xform.

CreateClientValidationRules(XFormsFragment, LocalizationService)

Creates client validation rules for an xform fragment.

Declaration
public static ValidationRuleDescriptor CreateClientValidationRules(XFormsFragment fragment, LocalizationService localizationService)
Parameters
Type Name Description
XFormsFragment fragment

The xform fragment.

LocalizationService localizationService

The resource locator that should be used by the method to get localized strings.

Returns
Type Description
ValidationRuleDescriptor

A validation rule descriptor.

CreateClientValidationRules(XForm, LocalizationService)

Creates client validation rule for the specified XForm.

Declaration
public static ValidationRuleDescriptorCollection CreateClientValidationRules(XForm xform, LocalizationService localizationService)
Parameters
Type Name Description
XForm xform

The xform.

LocalizationService localizationService

The resource locator that should be used by the method to get localized strings.

Returns
Type Description
ValidationRuleDescriptorCollection

A collection of validation rules for the given xform.

Extension Methods