Partager via


DataCollection<TKey,TValue>.AddRange Method

Definition

Overloads

AddRange(IEnumerable<KeyValuePair<TKey,TValue>>)

Adds the elements of the specified collection to the end of the DataCollection<TKey,TValue>.

AddRange(KeyValuePair<TKey,TValue>[])

Adds the elements of the specified collection to the end of the DataCollection<TKey,TValue>.

AddRange(IEnumerable<KeyValuePair<TKey,TValue>>)

Adds the elements of the specified collection to the end of the DataCollection<TKey,TValue>.

public:
 void AddRange(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ items);
public void AddRange (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> items);
member this.AddRange : seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> unit
Public Sub AddRange (items As IEnumerable(Of KeyValuePair(Of TKey, TValue)))

Parameters

items
IEnumerable<KeyValuePair<TKey,TValue>>

<KeyValuePair<TKey, TValue>>. The collection whose elements should be added to the end of the DataCollection<T>. The collection itself cannot be null, but it can contain elements that are null, if type T is a reference type.

Applies to

AddRange(KeyValuePair<TKey,TValue>[])

Adds the elements of the specified collection to the end of the DataCollection<TKey,TValue>.

public:
 void AddRange(... cli::array <System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ items);
public void AddRange (params System.Collections.Generic.KeyValuePair<TKey,TValue>[] items);
member this.AddRange : System.Collections.Generic.KeyValuePair<'Key, 'Value>[] -> unit
Public Sub AddRange (ParamArray items As KeyValuePair(Of TKey, TValue)())

Parameters

items
KeyValuePair<TKey,TValue>[]

The array whose elements should be added to the end of the DataCollection<T>. The array itself cannot be null, but it can contain elements that are null, if type T is a reference type.

Applies to