BackupDeviceList.AddDevice(String, DeviceType) BackupDeviceList.AddDevice(String, DeviceType) Method

Definition

Adds device type with the specified name to the list.

public:
 void AddDevice(System::String ^ name, Microsoft::SqlServer::Management::Smo::DeviceType deviceType);
public void AddDevice (string name, Microsoft.SqlServer.Management.Smo.DeviceType deviceType);
Parameters
name
String String

String value that is used to specify the name of the device that is being added to the BackupDeviceList object.

deviceType
DeviceType DeviceType

DeviceType object value that specifies the type of device to add to the BackupDeviceList object.

Examples

Backing Up and Restoring Databases and Transaction Logs

Applies to