共用方式為


CompareTo 方法

此 API 支援 基礎結構,但無法直接從您的程式碼使用。

不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 Used to determine the sort order of the current UIConnectionInfo object in relation to another UIConnectionInfo object.

命名空間:  Microsoft.SqlServer.Management.Smo.RegSvrEnum
組件:  Microsoft.SqlServer.RegSvrEnum (在 Microsoft.SqlServer.RegSvrEnum.dll 中)

語法

'宣告
Public Function CompareTo ( _
    other As UIConnectionInfo _
) As Integer
'用途
Dim instance As UIConnectionInfo
Dim other As UIConnectionInfo
Dim returnValue As Integer

returnValue = instance.CompareTo(other)
public int CompareTo(
    UIConnectionInfo other
)
public:
virtual int CompareTo(
    UIConnectionInfo^ other
) sealed
abstract CompareTo : 
        other:UIConnectionInfo -> int 
override CompareTo : 
        other:UIConnectionInfo -> int 
public final function CompareTo(
    other : UIConnectionInfo
) : int

參數

傳回值

型別:System. . :: . .Int32
不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 A Int32 value that is negative if the current object sorts before the other object, 0 if they sort to the same location, and positive if the current object sorts after the other object.

實作

IComparable< (Of < ( <'T> ) > ) >. . :: . .CompareTo(T)

備註

CompareTo()()()() determines sort order based on the ServerType, DisplayName, ServerName, UserName, and ID()()()() properties.