Share via


WorkloadGroupCollection.CopyTo Method

Copies the collection to a single dimension array starting at the indicated index.

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

Syntax

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

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

Parameters

See Also

Reference

WorkloadGroupCollection Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Create a Workload Group