Compartir a través de


UIConnectionInfo.CompareTo Método

Esta API admite la infraestructura de SQL Server 2012 y no está prevista su utilización directa desde el código.

No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. Used to determine the sort order of the current UIConnectionInfo object in relation to another UIConnectionInfo object.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo.RegSvrEnum
Ensamblado:  Microsoft.SqlServer.RegSvrEnum (en Microsoft.SqlServer.RegSvrEnum.dll)

Sintaxis

'Declaración
Public Function CompareTo ( _
    other As UIConnectionInfo _
) As Integer
'Uso
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

Parámetros

Valor devuelto

Tipo: System.Int32
No haga referencia directamente a este miembro en el código. Admite la infraestructura de 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.

Implementa

IComparable<T>.CompareTo(T)

Comentarios

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

Vea también

Referencia

UIConnectionInfo Clase

Espacio de nombres Microsoft.SqlServer.Management.Smo.RegSvrEnum