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)

'Declaration
Public Class WorkflowMarkupSerializer
'Usage
Dim instance As WorkflowMarkupSerializer

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.

NoteNote:

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.

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 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.

.NET Framework

Supported in: 3.5, 3.0
Show: