BaseCollection<T>.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 _
)
'Usage
Dim instance As BaseCollection
Dim item As T
instance.Add(item)
public void Add(
T item
)
Parameters
- item
Type: T
The element to be added to the collection.
Implements
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if trying to add null. |
InvalidOperationException | Thrown if the item is already in the collection. |