BackupDeviceList BackupDeviceList BackupDeviceList Class

Definition

Important

This API is not CLS-compliant.

The BackupDeviceList object provides programmatic access to a list backup devices.

public ref class BackupDeviceList : System::Collections::Generic::List<Microsoft::SqlServer::Management::Smo::BackupDeviceItem ^>
[System.CLSCompliant(false)]
public class BackupDeviceList : System.Collections.Generic.List<Microsoft.SqlServer.Management.Smo.BackupDeviceItem>
Public Class BackupDeviceList
Inherits List(Of BackupDeviceItem)
Inheritance
BackupDeviceListBackupDeviceListBackupDeviceList
Attributes

Examples

Backing Up and Restoring Databases and Transaction Logs

Remarks

With the BackupDeviceList object, you can do the following:

  • Perform a backup to the specified list of devices.

  • Add backup devices to the list.

Constructors

BackupDeviceList() BackupDeviceList() BackupDeviceList()

Initializes a new instance of the BackupDeviceList class.

BackupDeviceList(IEnumerable<BackupDeviceItem>) BackupDeviceList(IEnumerable<BackupDeviceItem>) BackupDeviceList(IEnumerable<BackupDeviceItem>)

Initializes a new instance of the BackupDeviceList class based on the specified BackupDeviceItem object.

BackupDeviceList(Int32) BackupDeviceList(Int32) BackupDeviceList(Int32)

Initializes a new instance of the BackupDeviceList class with the specified capacity.

Methods

AddDevice(String, DeviceType) AddDevice(String, DeviceType) AddDevice(String, DeviceType)

Adds device type with the specified name to the list.

Applies to