Share via


AvailabilityGroupCollection.CopyTo Method

Copies the current availability group collection to the specified availability group array at the specified index.

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

Syntax

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

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

Parameters

  • index
    Type: System.Int32
    The index of the availability group array at which the collection groups will be copied.

See Also

Reference

AvailabilityGroupCollection Class

Microsoft.SqlServer.Management.Smo Namespace