This documentation is archived and is not being maintained.

WorkflowMarkupSerializer Class

Provides the extensible Application Markup Language (XAML) serialization services to workflows at design time.

Namespace: System.Workflow.ComponentModel.Serialization
Assembly: System.Workflow.ComponentModel (in system.workflow.componentmodel.dll)
XML Namespace:

public class WorkflowMarkupSerializer
public class WorkflowMarkupSerializer
public class WorkflowMarkupSerializer
Not applicable.

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.


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)







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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0