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.
範例
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。
請參閱
參考
Microsoft.SqlServer.Management.Smo 命名空間