共用方式為


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 命名空間

其他資源

BACKUP (Transact-SQL)