Share via


RestoreLocationCollection.AddRange(ICollection) Method

Definition

Adds the set of specified elements to the end of the collection.

public void AddRange (System.Collections.ICollection items);
member this.AddRange : System.Collections.ICollection -> unit
Public Sub AddRange (items As ICollection)

Parameters

items
ICollection

The ICollection whose elements should be added to the collection.

Exceptions

  • The specified collection is a null reference (Nothing in Visual Basic).
  • The specified collection has one or more items that are null reference (Nothing in Visual Basic).
  • The specified collection has items that are duplicate.
  • The specified collection has one or more items that already esist in the collection.

Applies to