WorkflowMarkupSerializer.OnBeforeSerialize 方法

定义

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)

参数

serializationManager
WorkflowMarkupSerializationManager

管理序列化过程的 WorkflowMarkupSerializationManager

obj
Object

要序列化的 Object

注解

OnBeforeSerialize 在即将运行 Serialize 方法之前调用。 可以在继承 OnBeforeSerialize 的类中重写 WorkflowMarkupSerializer,以便在序列化过程中的 obj 步骤开始之前,在 Serialize 上执行所需的处理。

OnBeforeSerialize 不提供任何默认行为。 若要添加任何处理逻辑,必须在派生类中重写此方法。

适用于