ActivityMarkupSerializer.OnBeforeSerialize 方法

定义

ActivityMarkupSerializer 通知即将序列化对象。

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

参数

serializationManager
WorkflowMarkupSerializationManager

管理序列化过程的 WorkflowMarkupSerializationManager

obj
Object

要序列化的 Object

例外

serializationManagerobjwriter 包含空引用(在 Visual Basic 中为 Nothing)。

obj 的类型不是 Activity

注解

OnAfterSerialize 方法即将在 Serialize 指定的活动上运行之前,调用 objOnBeforeSerialize 写入活动的开放可扩展应用程序标记语言 (XAML) 标记,包括任何必需的属性。

适用于