This documentation version is deprecated. Please click here for the latest version

Custom Element Serialization [Writable]

Prev Next

Overview

The serialization of elements (like Flow steps and page elements) is handled by an attribute called [Writable]. It can be accessed by adding attributes marking up an object or from an interface. 

To learn more about interfaces that can serialize, see Custom Element Serialization [Writable] (Advanced).

Example

In the code, add [Writable] to an element that needs to be serialized. If a field or property needs to be serialized and stored, mark it with an [WritableValue] attribute. 

Below is an example of using the attributes to specify serialization.

 [Writable]
public class BaseSegmentStep;
{
   [WritableValue]
   string outputSegment;
}