BackupDevices 属性

表示 BackupDevice 对象的集合。每个 BackupDevice 对象都表示对 SQL Server 的实例定义的备份设备。

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

语法

声明
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(BackupDevice))> _
Public ReadOnly Property BackupDevices As BackupDeviceCollection
    Get
用法
Dim instance As Server
Dim value As BackupDeviceCollection

value = instance.BackupDevices
[SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(BackupDevice))]
public BackupDeviceCollection BackupDevices { get; }
[SfcObjectAttribute(SfcContainerRelationship::ObjectContainer, SfcContainerCardinality::ZeroToAny, 
    typeof(BackupDevice))]
public:
property BackupDeviceCollection^ BackupDevices {
    BackupDeviceCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(BackupDevice))>]
member BackupDevices : BackupDeviceCollection
function get BackupDevices () : BackupDeviceCollection

属性值

类型:Microsoft.SqlServer.Management.Smo. . :: . .BackupDeviceCollection
一个 BackupDeviceCollection 对象,该对象表示在 SQL Server 的实例上定义的所有备份设备。

注释

A tape drive or disk drive that is used in a backup or restore operation is referred to as a backup device. When you create backups, you must select a backup device to write the data on. For more information, see 备份设备.