Share via


BackupDeviceItem Constructor (String, DeviceType)

Initializes a new instance of the [BackupDeviceItem] class that has the specified name and kind of device.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)

Syntax

'Declaration
Public Sub New ( _
    name As String, _
    deviceType As DeviceType _
)
'Usage
Dim name As String 
Dim deviceType As DeviceType 

Dim instance As New BackupDeviceItem(name, deviceType)
public BackupDeviceItem(
    string name,
    DeviceType deviceType
)
public:
BackupDeviceItem(
    String^ name, 
    DeviceType deviceType
)
new : 
        name:string * 
        deviceType:DeviceType -> BackupDeviceItem
public function BackupDeviceItem(
    name : String, 
    deviceType : DeviceType
)

Parameters

Examples

Backing Up and Restoring Databases and Transaction Logs

See Also

Reference

BackupDeviceItem Class

BackupDeviceItem Overload

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

BACKUP (Transact-SQL)