Adds the elements of the specified collection to the end of the ChannelCollectionBase<(Of <(<'T>)>)>.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual void AddRange( IEnumerable<T> collection )
Public Overridable Sub AddRange ( _ collection As IEnumerable(Of T) _ )
public: virtual void AddRange( IEnumerable<T>^ collection )
Parameters
- collection (IEnumerable<(Of <(<'T>)>)>)
- The collection whose elements should be added to the end of the ChannelCollectionBase<(Of <(<'T>)>)>. The collection itself cannot be null, but it can contain elements that are null, if type T is a reference type.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | collection is null. |