ActivityCollection.ICollection<Activity>.Add Method

Adds an object to the IList at the end of the IList.

Namespace:  System.Workflow.ComponentModel
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

void ICollection<Activity>.Add(
	Activity item
)

Parameters

item
Type: System.Workflow.ComponentModel.Activity

The Object to add to the IList.

Implements

ICollection<T>.Add(T)

Raises an exception with the error message "Error_InvalidListItem" if the Object is not of type Activity.

Example

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0
Show: