Edit

Share via


NativeActivityMetadata.AddChild Method

Definition

Adds the specified activity to the metadata's list of child activities.

Overloads

AddChild(Activity)

Adds the specified activity to the metadata's list of child activities.

AddChild(Activity, Object)

Adds the specified activity to the metadata's list of child activities.

AddChild(Activity)

Adds the specified activity to the metadata's list of child activities.

public void AddChild(System.Activities.Activity child);

Parameters

child
Activity

The activity to add.

Remarks

An activity added using AddChild is a child activity that the parent activity can schedule directly. These activities are to be provided by the consumer of the activity. An example of this is the Activities collection of a Sequence activity. These activities (and any activities they add using AddChild or AddImportedChild) have access to variables added through AddVariable.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

AddChild(Activity, Object)

Adds the specified activity to the metadata's list of child activities.

public void AddChild(System.Activities.Activity child, object origin);

Parameters

child
Activity

The activity to add.

origin
Object

The origin of the activity.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1