Classe BackupDeviceItem
The BackupDeviceItem object provides programmatic access to named SQL Server backup devices.
Hiérarchie d'héritage
System. . :: . .Object
Microsoft.SqlServer.Management.Smo..::..BackupDeviceItem
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.SmoExtended (en Microsoft.SqlServer.SmoExtended.dll)
Syntaxe
'Déclaration
Public Class BackupDeviceItem _
Implements IComparable
'Utilisation
Dim instance As BackupDeviceItem
public class BackupDeviceItem : IComparable
public ref class BackupDeviceItem : IComparable
type BackupDeviceItem =
class
interface IComparable
end
public class BackupDeviceItem implements IComparable
Le type BackupDeviceItem expose les membres suivants.
Constructeurs
Nom | Description | |
---|---|---|
BackupDeviceItem() () () () | Initializes a new instance of the BackupDeviceItem class. | |
BackupDeviceItem(String, DeviceType) | Initializes a new instance of the [BackupDeviceItem] class that has the specified name and kind of device. |
Haut de la page
Propriétés
Nom | Description | |
---|---|---|
DeviceType | Gets the kind of device for the BackupDeviceItem object. | |
Name | Gets the name of device for the BackupDeviceItem object. |
Haut de la page
Méthodes
Nom | Description | |
---|---|---|
CompareTo | Verifies whether the specified object shares the same name as the referenced BackupDeviceItem object. | |
Equals | Determines whether the current object is the same as the specified object. (remplace Object. . :: . .Equals(Object).) | |
Finalize | (hérité de Object.) | |
GetHashCode | Gets the hash code for the object. (remplace Object. . :: . .GetHashCode() () () ().) | |
GetType | (hérité de Object.) | |
MemberwiseClone | (hérité de Object.) | |
ToString | (hérité de Object.) |
Haut de la page
Opérateurs
Nom | Description | |
---|---|---|
Equality | Determines whether two objects are equal by performing an equality operation on two BackupDeviceItem objects. | |
GreaterThan | Determines whether one object is greater than another by performing an operation on two BackupDeviceItem objects. | |
Inequality | Determines whether two objects are unequal by performing an inequality operation on two BackupDeviceItem objects. | |
LessThan | Determines whether one object is less than another by performing an operation on two BackupDeviceItem objects. |
Haut de la page
Notes
With the BackupDeviceItem object, you can do the following:
Access the backup device by name.
Verify whether two named backup devices are the same.
Sécurité des threads
Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.
Voir aussi