BaseCollection<T>.AddRange Method
Adds a collection to the collection.
Namespace: Microsoft.Rtc.Workflow.Utilities
Assembly: Microsoft.Rtc.Workflow (in Microsoft.Rtc.Workflow.dll)
Syntax
'Declaration
Public Sub AddRange ( _
collection As BaseCollection(Of T) _
)
'Usage
Dim instance As BaseCollection
Dim collection As BaseCollection(Of T)
instance.AddRange(collection)
public void AddRange(
BaseCollection<T> collection
)
Parameters
- collection
Type: Microsoft.Rtc.Workflow.Utilities.BaseCollection<T>
The items to add.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if trying to add null. |
InvalidOperationException | Thrown if the item is already in the collection. |