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