BackupDevice BackupDevice BackupDevice Constructors

Definition

Overloads

BackupDevice() BackupDevice() BackupDevice()

Initializes a new instance of the BackupDevice class.

BackupDevice(Server, String) BackupDevice(Server, String)

Initializes a new instance of the BackupDevice class with the specified name and on the specified instance of SQL Server.

BackupDevice() BackupDevice() BackupDevice()

Initializes a new instance of the BackupDevice class.

public:
 BackupDevice();
public BackupDevice ();
Public Sub New ()

Examples

Backing Up and Restoring Databases and Transaction Logs

Remarks

The default constructor initializes any fields to their default values.

BackupDevice(Server, String) BackupDevice(Server, String)

Initializes a new instance of the BackupDevice class with the specified name and on the specified instance of SQL Server.

public:
 BackupDevice(Microsoft::SqlServer::Management::Smo::Server ^ server, System::String ^ name);
public BackupDevice (Microsoft.SqlServer.Management.Smo.Server server, string name);
Parameters
server
Server Server Server

A Server object value that specifies the SQL Server instance that contains the backup device.

name
String String String

A String value that specifies the name of the backup device.

Examples

Backing Up and Restoring Databases and Transaction Logs

Applies to