Compartir a través de


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

ICollection<T>.Add(T)

Exceptions

Exception Condition
ArgumentNullException

Thrown if trying to add null.

InvalidOperationException

Thrown if the item is already in the collection.

See Also

Reference

BaseCollection<T> Class

BaseCollection<T> Members

Microsoft.Rtc.Workflow.Utilities Namespace