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)