Share via


TargetServerCollection.CopyTo Method

Copies the collection objects to a one-dimensional array beginning at the index value specified.

Namespace:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub CopyTo ( _
    array As TargetServer(), _
    index As Integer _
)
'Usage
Dim instance As TargetServerCollection 
Dim array As TargetServer()
Dim index As Integer

instance.CopyTo(array, index)
public void CopyTo(
    TargetServer[] array,
    int index
)
public:
void CopyTo(
    array<TargetServer^>^ array, 
    int index
)
member CopyTo : 
        array:TargetServer[] * 
        index:int -> unit
public function CopyTo(
    array : TargetServer[], 
    index : int
)

Parameters

  • index
    Type: System.Int32
    An Int32 value that specifies the index position to start the copy.

Remarks

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Examples

Using Collections

See Also

Reference

TargetServerCollection Class

Microsoft.SqlServer.Management.Smo.Agent Namespace