BackupDeviceList Class
The BackupDeviceList object provides programmatic access to a list backup devices.
This API is not CLS-compliant.
Inheritance Hierarchy
System.Object
System.Collections.Generic.List<BackupDeviceItem>
Microsoft.SqlServer.Management.Smo.BackupDeviceList
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)
Syntax
'Declaration
<CLSCompliantAttribute(False)> _
Public Class BackupDeviceList _
Inherits List(Of BackupDeviceItem)
'Usage
Dim instance As BackupDeviceList
[CLSCompliantAttribute(false)]
public class BackupDeviceList : List<BackupDeviceItem>
[CLSCompliantAttribute(false)]
public ref class BackupDeviceList : public List<BackupDeviceItem^>
[<CLSCompliantAttribute(false)>]
type BackupDeviceList =
class
inherit List<BackupDeviceItem>
end
public class BackupDeviceList extends List<BackupDeviceItem>
The BackupDeviceList type exposes the following members.
Constructors
Name | Description | |
---|---|---|
BackupDeviceList() | Initializes a new instance of the BackupDeviceList class. | |
BackupDeviceList(Int32) | Initializes a new instance of the BackupDeviceList class with the specified capacity. | |
BackupDeviceList(IEnumerable<BackupDeviceItem>) | Initializes a new instance of the BackupDeviceList class based on the specified BackupDeviceItem object. |
Top
Properties
Name | Description | |
---|---|---|
Capacity | (Inherited from List<BackupDeviceItem>.) | |
Count | (Inherited from List<BackupDeviceItem>.) | |
Item | (Inherited from List<BackupDeviceItem>.) |
Top
Methods
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IList.Add | (Inherited from List<BackupDeviceItem>.) | |
IList.Contains | (Inherited from List<BackupDeviceItem>.) | |
ICollection.CopyTo | (Inherited from List<BackupDeviceItem>.) | |
IEnumerable<T>.GetEnumerator | (Inherited from List<BackupDeviceItem>.) | |
IEnumerable.GetEnumerator | (Inherited from List<BackupDeviceItem>.) | |
IList.IndexOf | (Inherited from List<BackupDeviceItem>.) | |
IList.Insert | (Inherited from List<BackupDeviceItem>.) | |
IList.IsFixedSize | (Inherited from List<BackupDeviceItem>.) | |
ICollection<T>.IsReadOnly | (Inherited from List<BackupDeviceItem>.) | |
IList.IsReadOnly | (Inherited from List<BackupDeviceItem>.) | |
ICollection.IsSynchronized | (Inherited from List<BackupDeviceItem>.) | |
IList.Item | (Inherited from List<BackupDeviceItem>.) | |
IList.Remove | (Inherited from List<BackupDeviceItem>.) | |
ICollection.SyncRoot | (Inherited from List<BackupDeviceItem>.) |
Top
Remarks
With the BackupDeviceList object, you can do the following:
Perform a backup to the specified list of devices.
Add backup devices to the list.
Examples
Backing Up and Restoring Databases and Transaction Logs
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
Microsoft.SqlServer.Management.Smo Namespace