UIConnectionInfo.CompareTo Method
This API supports the infrastructure and is not intended to be used directly from your code.
Do not reference this member directly in your code. It supports the SQL Server infrastructure. Used to determine the sort order of the current UIConnectionInfo object in relation to another UIConnectionInfo object.
Namespace: Microsoft.SqlServer.Management.Smo.RegSvrEnum
Assembly: Microsoft.SqlServer.RegSvrEnum (in Microsoft.SqlServer.RegSvrEnum.dll)
Syntax
'Declaration
Public Function CompareTo ( _
other As UIConnectionInfo _
) As Integer
'Usage
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
Parameters
- other
Type: Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo
The UIConnectionInfo object to compare to the current object.
Return Value
Type: System.Int32
Do not reference this member directly in your code. It supports the SQL Server infrastructure. 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.
Implements
Remarks
CompareTo() determines sort order based on the ServerType, DisplayName, ServerName, UserName, and ID() properties.