Custom Element Serialization [Writable]
  • 13 Aug 2021
  • 1 Minute to read
  • Dark
    Light
  This documentation version is deprecated, please click here for the latest version.

Custom Element Serialization [Writable]

  • Dark
    Light

Article summary

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;
}



Was this article helpful?