BackupDeviceCollection.CopyTo(BackupDevice[], Int32) BackupDeviceCollection.CopyTo(BackupDevice[], Int32) BackupDeviceCollection.CopyTo(BackupDevice[], Int32) Method

Definition

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

public:
 void CopyTo(cli::array <Microsoft::SqlServer::Management::Smo::BackupDevice ^> ^ array, int index);
public void CopyTo (Microsoft.SqlServer.Management.Smo.BackupDevice[] array, int index);
Public Sub CopyTo (array As BackupDevice(), index As Integer)
Parameters
array
BackupDevice[]

An array of BackupDevice objects.

index
Int32 Int32 Int32

An Int32 value that specifies the index value in the collection to start copying.

Examples

Using Collections

Applies to