Edit

Bagikan melalui


WorkflowMarkupSerializer.AddChild Method

Definition

Adds a child object to the specified object.

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)

Parameters

serializationManager
WorkflowMarkupSerializationManager

The WorkflowMarkupSerializationManager to use in this operation.

parentObject
Object

The Object to which to add the child object.

childObj
Object

The Object to add.

Exceptions

parentObject or childObj contains a null reference (Nothing in Visual Basic).

Remarks

Other than exception behavior, AddChild provides no default behavior. You must override WorkflowMarkupSerializer to provide logic for this method in an inheriting serializer.

Applies to