Partager via


Méthode UIConnectionInfo.CompareTo

Cette API prend en charge l'infrastructure SQL Server 2012 et n'est pas destinée à être utilisée directement à partir de votre code.

Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. Used to determine the sort order of the current UIConnectionInfo object in relation to another UIConnectionInfo object.

Espace de noms :  Microsoft.SqlServer.Management.Smo.RegSvrEnum
Assembly :  Microsoft.SqlServer.RegSvrEnum (en Microsoft.SqlServer.RegSvrEnum.dll)

Syntaxe

'Déclaration
Public Function CompareTo ( _
    other As UIConnectionInfo _
) As Integer
'Utilisation
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

Paramètres

Valeur de retour

Type : System.Int32
Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure 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.

Implémente

IComparable<T>.CompareTo(T)

Notes

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

Voir aussi

Référence

UIConnectionInfo Classe

Espace de noms Microsoft.SqlServer.Management.Smo.RegSvrEnum