ActivityCollection.ICollection(Of 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)

'Declaration
Private Sub Add ( _
	item As Activity _
) Implements ICollection(Of Activity).Add

Parameters

item
Type: System.Workflow.ComponentModel.Activity

The Object to add to the IList.

Implements

ICollection(Of 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: