Класс BackupDeviceItem
The BackupDeviceItem object provides programmatic access to named SQL Server backup devices.
Иерархия наследования
System. . :: . .Object
Microsoft.SqlServer.Management.Smo..::..BackupDeviceItem
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.SmoExtended (в Microsoft.SqlServer.SmoExtended.dll)
Синтаксис
'Декларация
Public Class BackupDeviceItem _
Implements IComparable
'Применение
Dim instance As BackupDeviceItem
public class BackupDeviceItem : IComparable
public ref class BackupDeviceItem : IComparable
type BackupDeviceItem =
class
interface IComparable
end
public class BackupDeviceItem implements IComparable
Тип BackupDeviceItem обеспечивает доступ к следующим элементам.
Конструкторы
| Имя | Описание | |
|---|---|---|
![]() |
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. |
В начало
Свойства
| Имя | Описание | |
|---|---|---|
![]() |
DeviceType | Gets the kind of device for the BackupDeviceItem object. |
![]() |
Name | Gets the name of device for the BackupDeviceItem object. |
В начало
Методы
| Имя | Описание | |
|---|---|---|
![]() |
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. (Переопределяет Object. . :: . .Equals(Object).) |
![]() |
Finalize | (Производный от Object.) |
![]() |
GetHashCode | Gets the hash code for the object. (Переопределяет Object. . :: . .GetHashCode() () () ().) |
![]() |
GetType | (Производный от Object.) |
![]() |
MemberwiseClone | (Производный от Object.) |
![]() |
ToString | (Производный от Object.) |
В начало
Операторы
| Имя | Описание | |
|---|---|---|
![]() ![]() |
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. |
В начало
Замечания
With the BackupDeviceItem object, you can do the following:
Access the backup device by name.
Verify whether two named backup devices are the same.
Безопасность многопоточности
Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.
См. также
.gif)
.gif)
.gif)
.gif)
.gif)