Chili.Opf3 Send comments on this topic.
AddRange(Generic IEnumerable,Generic Predicate) Method
See Also 
Chili.Opf3 Namespace > Generic ObjectSet Class > AddRange Method : AddRange(Generic IEnumerable,Generic Predicate) Method




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.
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)
C# 
public void AddRange( 
   IEnumerable<T> collection,
   Predicate<T> 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

ExceptionDescription
ArgumentNullExceptionCollection is null.

Requirements

Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family

See Also