Class XFormHelper
A helper class used for common tasks for xforms in EPiServer.
Inheritance
System.Object
XFormHelper
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.Util
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public class XFormHelper
Constructors
XFormHelper()
Declaration
public XFormHelper()
Methods
List()
Return all XForms for the site.
Declaration
public static IList<XForm> List()
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<XForm> | An IList containing the XForms |
ListFormReferences(XForm)
List all the pages that are using the given form.
Declaration
public static PageDataCollection ListFormReferences(XForm form)
Parameters
Type | Name | Description |
---|---|---|
XForm | form | The form |
Returns
Type | Description |
---|---|
PageDataCollection | A PageDataCollection with the pages that uses the form |
ListFormReferences(String)
List all the pages that are using the given form.
Declaration
public static PageDataCollection ListFormReferences(string formId)
Parameters
Type | Name | Description |
---|---|---|
System.String | formId | The form id |
Returns
Type | Description |
---|---|
PageDataCollection | A PageDataCollection with the pages that uses the form |
ListFormReferences(String, IPageCriteriaQueryService)
List all the pages that are using the given form.
Declaration
public static PageDataCollection ListFormReferences(string formId, IPageCriteriaQueryService queryService)
Parameters
Type | Name | Description |
---|---|---|
System.String | formId | The form id |
IPageCriteriaQueryService | queryService | The IPageCriteriaQueryService to use |
Returns
Type | Description |
---|---|
PageDataCollection | A PageDataCollection with the pages that uses the form |