WorkflowMarkupSerializer.OnBeforeSerialize Method (WorkflowMarkupSerializationManager, Object)


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


Type: System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializationManager

The WorkflowMarkupSerializationManager that manages the serialization process.

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
Available since 3.0
Return to top