BackupRestoreBase.Devices 属性

获取为备份或还原操作指定的备份设备。

此 API 不符合 CLS。 

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.SmoExtended(在 Microsoft.SqlServer.SmoExtended.dll 中)

语法

声明
<CLSCompliantAttribute(False)> _
Public ReadOnly Property Devices As BackupDeviceList 
    Get
用法
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

属性值

类型:Microsoft.SqlServer.Management.Smo.BackupDeviceList
一个 BackupDeviceList 对象数组值,该值列出所需备份设备的名称。默认情况下,不指定该值。

示例

备份和还原数据库和事务日志

请参阅

参考

BackupRestoreBase 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

RESTORE (Transact-SQL)

BACKUP (Transact-SQL)