Export (0) Print
Expand All

WorkflowMarkupSerializer.OnBeforeSerialize Method

Notifies the WorkflowMarkupSerializer that Serialize is about to run.

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

protected virtual void OnBeforeSerialize(
	WorkflowMarkupSerializationManager serializationManager,
	Object obj
)

Parameters

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

The WorkflowMarkupSerializationManager that manages the serialization process.

obj
Type: System.Object

The Object to be serialized.

OnBeforeSerialize is called immediately before the Serialize method runs. You can override OnBeforeSerialize in a class that inherits WorkflowMarkupSerializer to perform required processing on obj before it the Serialize step in the serialization process has begun.

OnBeforeSerialize provides no default behavior. You must override it in a derived class to add any processing logic.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0
Show:
© 2015 Microsoft