WebTestContext.CopyTo Method

Copies the WebTestContext elements to an array of KeyValuePair<TKey, TValue> objects

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

Syntax

'Declaration
Public Sub CopyTo ( _
    keyValuePairArray As KeyValuePair(Of String, Object)(), _
    index As Integer _
)
public void CopyTo(
    KeyValuePair<string, Object>[] keyValuePairArray,
    int index
)
public:
virtual void CopyTo(
    array<KeyValuePair<String^, Object^>>^ keyValuePairArray, 
    int index
) sealed
abstract CopyTo : 
        keyValuePairArray:KeyValuePair<string, Object>[] * 
        index:int -> unit 
override CopyTo : 
        keyValuePairArray:KeyValuePair<string, Object>[] * 
        index:int -> unit 
public final function CopyTo(
    keyValuePairArray : KeyValuePair<String, Object>[], 
    index : int
)

Parameters

  • index
    Type: System.Int32
    The starting index location where the array of objects is copied.

Implements

ICollection<T>.CopyTo(array<T[], Int32)

.NET Framework Security

See Also

Reference

WebTestContext Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace