BackupRestoreBase.Devices Property

Gets the backup devices specified for the backup or restore operation.

This API is not CLS-compliant. 

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

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public ReadOnly Property Devices As BackupDeviceList 
    Get
'Usage
Dim instance As BackupRestoreBase 
Dim value As BackupDeviceList 

value = instance.Devices
[CLSCompliantAttribute(false)]
public BackupDeviceList Devices { get; }
[CLSCompliantAttribute(false)]
public:
property BackupDeviceList^ Devices {
    BackupDeviceList^ get ();
}
[<CLSCompliantAttribute(false)>]
member Devices : BackupDeviceList
function get Devices () : BackupDeviceList

Property Value

Type: Microsoft.SqlServer.Management.Smo.BackupDeviceList
A BackupDeviceList object array value that lists the names of the required backup devices. By default, the value is unspecified.

Examples

Backing Up and Restoring Databases and Transaction Logs

See Also

Reference

BackupRestoreBase Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

RESTORE (Transact-SQL)

BACKUP (Transact-SQL)