編輯

共用方式為


WorkflowMarkupSerializer.OnBeforeDeserialize Method

Definition

Overridden. Notifies the WorkflowMarkupSerializer that an object is about to be deserialized.

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

Parameters

serializationManager
WorkflowMarkupSerializationManager

The WorkflowMarkupSerializationManager that managed the deserialization process.

obj
Object

The Object that was deserialized.

Remarks

OnBeforeDeserialize is called immediately before the Deserialize method runs. You can override OnBeforeSerialize in a class that inherits WorkflowMarkupSerializer to perform required processing on obj before it is serialized to extensible Application Markup Language (XAML).

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

Applies to