Export (0) Print
Expand All

WorkflowMarkupSerializer.SerializeToString Method

Serializes the specified Object to a string.

Namespace:  System.Workflow.ComponentModel.Serialization
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

protected internal virtual string SerializeToString(
	WorkflowMarkupSerializationManager serializationManager,
	Object value
)

Parameters

serializationManager
Type: System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializationManager

The WorkflowMarkupSerializationManager that manages the serialization process.

value
Type: System.Object

The Object to serialize to a string.

Return Value

Type: System.String
A string that contains the serialized Object.

ExceptionCondition
ArgumentNullException

serializationManager or value contains a null reference (Nothing in Visual Basic).

If a Delegate instance is assignable from value, SerializeToString writes the method name associated with value to a string. If a Type instance is assignable from value, SerializeToString writes the fully-qualified name of the type associated with value to a string. If neither of these conditions exist, SerializeToString converts value to a string and writes the result.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft