Classe BackupDeviceItem
The BackupDeviceItem object provides programmatic access to named SQL Server backup devices.
Hierarquia de herança
System. . :: . .Object
Microsoft.SqlServer.Management.Smo..::..BackupDeviceItem
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.SmoExtended (em Microsoft.SqlServer.SmoExtended.dll)
Sintaxe
'Declaração
Public Class BackupDeviceItem _
Implements IComparable
'Uso
Dim instance As BackupDeviceItem
public class BackupDeviceItem : IComparable
public ref class BackupDeviceItem : IComparable
type BackupDeviceItem =
class
interface IComparable
end
public class BackupDeviceItem implements IComparable
O tipo BackupDeviceItem expõe os membros a seguir.
Construtores
Nome | Descrição | |
---|---|---|
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. |
Início
Propriedades
Nome | Descrição | |
---|---|---|
DeviceType | Gets the kind of device for the BackupDeviceItem object. | |
Name | Gets the name of device for the BackupDeviceItem object. |
Início
Métodos
Nome | Descrição | |
---|---|---|
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. (Substitui Object. . :: . .Equals(Object).) | |
Finalize | (Herdado de Object.) | |
GetHashCode | Gets the hash code for the object. (Substitui Object. . :: . .GetHashCode() () () ().) | |
GetType | (Herdado de Object.) | |
MemberwiseClone | (Herdado de Object.) | |
ToString | (Herdado de Object.) |
Início
Operadores
Nome | Descrição | |
---|---|---|
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. |
Início
Comentários
With the BackupDeviceItem object, you can do the following:
Access the backup device by name.
Verify whether two named backup devices are the same.
Segurança de thread
Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.
Consulte também