Value holder for XForms data and metadata.

Namespace:  EPiServer.XForms
Assembly:  EPiServer.XForms (in EPiServer.XForms.dll) Version: 5.2.375.236

Syntax

C#
[SerializableAttribute]
public class XFormData

Remarks

XForm data is stored in the following syntax in an XmlDocument:

<instance> <Vote>Really great</Vote> </instance>

Examples

Example on how to save XFormData to the database
CopyC#
XForm form = new XForm();
XFormData data = form.CreateFormData();
NameValueCollection values = data.GetValues();
foreach(String key in values)
{
    data.SetValue(key, "abc");
}
data.ChannelOptions = ChannelOptions.Database;
data.Send(); // In 4.51 you have to call data.Send(data.FormId);

Inheritance Hierarchy

System..::.Object
  EPiServer.XForms..::.XFormData

See Also