Share via


WebTestBaseCollection<T>.AddRange Method

Adds the elements of the specified collection to the end of the WebTestBaseCollection<T>.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

'Declaration
Public Sub AddRange ( _
    items As IEnumerable(Of T) _
)
public void AddRange(
    IEnumerable<T> items
)
public:
void AddRange(
    IEnumerable<T>^ items
)
member AddRange : 
        items:IEnumerable<'T> -> unit 
public function AddRange(
    items : IEnumerable<T>
)

Parameters

  • items
    Type: System.Collections.Generic.IEnumerable<T>
    The collection whose elements are added to the end of the WebTestBaseCollection<T>. The collection itself cannot be nulla null reference (Nothing in Visual Basic), but it can contain elements that are nulla null reference (Nothing in Visual Basic), if type T is a reference type.

Exceptions

Exception Condition
[ArgumentNullException]

items is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

WebTestBaseCollection<T> Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace