WorkflowMarkupSerializer Class
Provides the extensible Application Markup Language (XAML) serialization services to workflows at design time.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
WorkflowMarkupSerializer provides methods that serialize workflow and Activity classes into XAML format and deserialize XAML content into workflow and activity class objects. These services are primarily used by workflow designers to persist the classes on the workflow design surface.
WorkflowMarkupSerializer is the base class for all markup serializers included in the System.Workflow.ComponentModel.Serialization namespace.
For more information, see Serialization.
WorkflowMarkupSerializer does not support serialization of nested types.
The functionality of WorkflowMarkupSerializer is dependent on functionality of other types outside of Windows Workflow Foundation. Based on the limitations of those other types, not all data types can be serialized through the WorkflowMarkupSerializer. The following is a list is an example of some unsupported types.
Note: |
|---|
This is not an exhaustive and complete list of unsupported types. |
Arrays (supported only if property is not decorated with DesignerSerializationVisibility.Content attribute value)
Types without parameterless constructors
Multidimensional Arrays
Generic types (Generic List and Dictionary types supported only if property is decorated with DesignerSerializationVisibility.Content attribute value)
Hashtable
Queue
Stack
XmlDocument
MailMessage
Bitmap
Enumeration Arrays
Enumerations decorated with the FlagsAttribute
In addition to this list, any property decorated with both the ContentPropertyAttibute and the DesignerSerializationVisibilityAttribute cannot be serialized by WorkflowMarkupSerializer.
System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializer
System.Workflow.ComponentModel.Design.ActivityDesignerLayoutSerializer
System.Workflow.ComponentModel.Design.ConnectorLayoutSerializer
System.Workflow.ComponentModel.Serialization.ActivityMarkupSerializer
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note: