Share via


UITestControlCollection.CopyTo Method

Copies the complete UITestControlCollection to a compatible one-dimensional array, starting at the specified index of the target array.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
Public Sub CopyTo ( _
    array As UITestControl(), _
    arrayIndex As Integer _
)
public void CopyTo(
    UITestControl[] array,
    int arrayIndex
)
public:
virtual void CopyTo(
    array<UITestControl^>^ array, 
    int arrayIndex
) sealed
abstract CopyTo : 
        array:UITestControl[] * 
        arrayIndex:int -> unit 
override CopyTo : 
        array:UITestControl[] * 
        arrayIndex:int -> unit 
public final function CopyTo(
    array : UITestControl[], 
    arrayIndex : int
)

Parameters

  • arrayIndex
    Type: System.Int32
    The zero-based index in the array parameter at which copying starts.

Implements

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

.NET Framework Security

See Also

Reference

UITestControlCollection Class

Microsoft.VisualStudio.TestTools.UITesting Namespace