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), _
ByVal match As Predicate(Of T) _
) |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As ObjectSet(Of T)
Dim collection As IEnumerable(Of T)
Dim match As Predicate(Of T)
instance.AddRange(collection, match)
|
| Managed Extensions for C++ | |
|---|
public: void AddRange(
IEnumerable<T>* collection,
Predicate<T>* match
) |
| C++/CLI | |
|---|
public:
void AddRange(
IEnumerable<T>^ collection,
Predicate<T>^ match
) |
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.
- match
- The Predicate delegate that defines the conditions to check against the elements.
Exceptions
| Exception | Description |
| ArgumentNullException | Collection is null. |
Requirements
Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family
See Also