Edit

Share via


WorkflowMarkupSerializer.SerializeToString Method

Definition

Serializes the specified Object to a string.

C#
protected internal virtual string SerializeToString(System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializationManager serializationManager, object value);

Parameters

serializationManager
WorkflowMarkupSerializationManager

The WorkflowMarkupSerializationManager that manages the serialization process.

value
Object

The Object to serialize to a string.

Returns

A string that contains the serialized Object.

Exceptions

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

Remarks

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.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1