共用方式為


Server.BackupDevices 屬性

Represents a collection of BackupDevice objects. Each BackupDevice object represents a backup device defined on the instance of 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
A BackupDeviceCollection object that represents all the backup devices defined on the instance of 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 備份裝置 (SQL Server).

請參閱

參考

Server 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

使用集合

備份及還原資料庫和交易記錄

管理伺服器