WorkflowMarkupSerializer.AddChild 方法

定义

将子对象添加到指定的对象中。

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

参数

serializationManager
WorkflowMarkupSerializationManager

要在此操作中使用的 WorkflowMarkupSerializationManager

parentObject
Object

要将子对象添加到的 Object

childObj
Object

要添加的 Object

例外

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

注解

除了异常行为,AddChild 不提供任何默认行为。 必须重写 WorkflowMarkupSerializer,以便在继承序列化程序中为此方法提供逻辑。

适用于