Add Method
Adds an element to the collection.
Namespace: Microsoft.Rtc.Workflow.Utilities
Assembly: Microsoft.Rtc.Workflow (in Microsoft.Rtc.Workflow.dll)
Syntax
'Declaration
Public Sub Add ( _
item As T _
)
public void Add(
T item
)
public:
virtual void Add(
T item
) sealed
function add(item);
Parameters
- item
Type: T
The element to be added to the collection.
Implements
ICollectionAdd(UTP)
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if trying to add null. |
InvalidOperationException | Thrown if the item is already in the collection. |