Share via


ServerInstanceCollection.CopyTo(ServerInstance[], Int32) Method

Definition

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

public:
 void CopyTo(cli::array <Microsoft::SqlServer::Management::Smo::Wmi::ServerInstance ^> ^ array, int index);
public void CopyTo (Microsoft.SqlServer.Management.Smo.Wmi.ServerInstance[] array, int index);
member this.CopyTo : Microsoft.SqlServer.Management.Smo.Wmi.ServerInstance[] * int -> unit
Public Sub CopyTo (array As ServerInstance(), index As Integer)

Parameters

array
ServerInstance[]

An array of ServerInstance objects.

index
Int32

An Int32 value that specifies the index position to start the copy.

Applies to