편집

다음을 통해 공유


WorkflowMarkupSerializer.OnBeforeSerialize Method

Definition

Notifies the WorkflowMarkupSerializer that Serialize(XmlWriter, Object) is about to run.

protected:
 virtual void OnBeforeSerialize(System::Workflow::ComponentModel::Serialization::WorkflowMarkupSerializationManager ^ serializationManager, System::Object ^ obj);
protected virtual void OnBeforeSerialize (System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializationManager serializationManager, object obj);
abstract member OnBeforeSerialize : System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializationManager * obj -> unit
override this.OnBeforeSerialize : System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializationManager * obj -> unit
Protected Overridable Sub OnBeforeSerialize (serializationManager As WorkflowMarkupSerializationManager, obj As Object)

Parameters

serializationManager
WorkflowMarkupSerializationManager

The WorkflowMarkupSerializationManager that manages the serialization process.

obj
Object

The Object to be serialized.

Remarks

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.

Applies to