The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
LoadTestUserContext::CopyTo Method (array<KeyValuePair<String^, Object^>>^, Int32)
Copies the elements of the LoadTestUserContext to an Array, starting at a particular Array index.
Assembly: Microsoft.VisualStudio.QualityTools.LoadTestFramework (in Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)
public: virtual void CopyTo( array<KeyValuePair<String^, Object^>>^ array, int arrayIndex ) sealed
Parameters
- array
-
Type:
array<System.Collections.Generic::KeyValuePair<String^, Object^>>^
The one-dimensional Array that is the destination of the elements that are copied from the LoadTestUserContext. The array must have zero-based indexing.
- arrayIndex
-
Type:
System::Int32
The zero-based index in the array at which copying starts.
Implements
ICollection<T>::CopyTo(array<T>^, Int32)| Exception | Condition |
|---|---|
| ArgumentNullException | array is null. |
| ArgumentOutOfRangeException | arrayIndex is less than 0. |
| ArgumentException | array is multidimensional. -or- The number of elements in the source LoadTestUserContext is greater than the available space from arrayIndex to the end of the destination array. |
Show: