Udostępnij za pośrednictwem


Server.BackupDevices Property

Represents a collection of BackupDevice objects. Each BackupDevice object represents a backup device defined on the instance of SQL Server.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Deklaracja
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, GetType(BackupDevice))> _
Public ReadOnly Property BackupDevices As BackupDeviceCollection
[SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, typeof(BackupDevice))] 
public BackupDeviceCollection BackupDevices { get; }
[SfcObjectAttribute(SfcContainerRelationship::ObjectContainer, SfcContainerCardinality::ZeroToAny, typeof(BackupDevice))] 
public:
property BackupDeviceCollection^ BackupDevices {
    BackupDeviceCollection^ get ();
}
/** @property */
public BackupDeviceCollection get_BackupDevices ()
public function get BackupDevices () : BackupDeviceCollection

Property Value

A BackupDeviceCollection object that represents all the backup devices defined on the instance of SQL Server.

Remarks

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 Backup Devices.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.