Adds the elements of the specified collection to the end of the
ObjectSet.
Syntax
| Visual Basic (Declaration) | |
|---|
Overloads Public Sub AddRange( _
ByVal collection As IEnumerable(Of T) _
) |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As ObjectSet(Of T)
Dim collection As IEnumerable(Of T)
instance.AddRange(collection)
|
| C# | |
|---|
public void AddRange(
IEnumerable<T> collection
) |
| Managed Extensions for C++ | |
|---|
public: void AddRange(
IEnumerable<T>* collection
) |
| C++/CLI | |
|---|
public:
void AddRange(
IEnumerable<T>^ collection
) |
Parameters
- collection
- The collection whose elements should be added to the end of the
ObjectSet. The collection itself cannot be null, but it can
contain elements that are null, if type T is a reference type.
Exceptions
| Exception | Description |
| ArgumentNullException | Collection is null. |
Requirements
Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family
See Also