UIConnectionInfo.CompareTo(UIConnectionInfo) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
請勿在程式碼中直接提及此成員。 它支援 SQL Server 基礎架構。 用來決定當前 UIConnectionInfo 物件相對於另一個 UIConnectionInfo 物件的排序順序。
public:
virtual int CompareTo(Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionInfo ^ other);
public int CompareTo(Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo other);
abstract member CompareTo : Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo -> int
override this.CompareTo : Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo -> int
Public Function CompareTo (other As UIConnectionInfo) As Integer
參數
- other
- UIConnectionInfo
要 UIConnectionInfo 和當前物件比較的物件。
傳回
請勿在程式碼中直接提及此成員。 它支援 SQL Server 基礎架構。
Int32若當前物件在物件之前other排序,0且排序到相同位置,則為負值;若當前物件在物件之後other排序,則為正值。
實作
備註
UIConnectionInfo比較 會根據 、 DisplayName、 ServerName、 UserNameId 及 的性質決定排序順序ServerType。