BackupDeviceItem.CompareTo Method
Verifies whether the specified object shares the same name as the referenced BackupDeviceItem object.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
語法
'宣告
Public Function CompareTo ( _
obj As Object _
) As Integer
public int CompareTo (
Object obj
)
public:
virtual int CompareTo (
Object^ obj
) sealed
public final int CompareTo (
Object obj
)
public final function CompareTo (
obj : Object
) : int
參數
- obj
A Object object value that is used to specify object that is compared with referenced BackupDeviceItem object.
傳回值
A Int32 value that specifies the lexical relationship between the two strings.
Value |
Description |
Less than zero |
The referenced object name is less than the object name specified by the parameter. |
Zero |
The referenced object name is equal to the object name specified by the parameter. |
Greater than zero |
The referenced object name is greater than the object name specified by the parameter. |
備註
更新的文字:
The comparison of object names is case-insensitive, meaning that "MyTable" is the same as "mytable".
只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。
執行緒安全性
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
平台
開發平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
目標平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
請參閱
參考
BackupDeviceItem Class
BackupDeviceItem Members
Microsoft.SqlServer.Management.Smo Namespace
其他資源
How to: Back Up Databases and Transaction Logs in Visual Basic .NET
BACKUP (Transact-SQL)
在 SQL Server 中備份和還原資料庫