Share via


WebTestContext.CopyTo Method

Copies the WebTestContext elements to an array of KeyValuePair 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

  • keyValuePairArray
    Type: array<KeyValuePair<String, Object>[]

    The name of the array objects where the copy resides.

  • index
    Type: Int32

    The starting index location where the array of objects is copied.

Implements

ICollection.CopyTo(UTP, Int32)

.NET Framework Security

See Also

Reference

WebTestContext Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace