CompareTo-Methode
Diese API unterstützt die -Infrastruktur und ist nicht zur direkten Verwendung im Code bestimmt.
Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. 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
Parameter
- other
Typ: Microsoft.SqlServer.Management.Smo.RegSvrEnum. . :: . .UIConnectionInfo
The UIConnectionInfo object to compare to the current object.
Rückgabewert
Typ: System. . :: . .Int32
Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. 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.
Implementiert
Hinweise
CompareTo()()()() determines sort order based on the ServerType, DisplayName, ServerName, UserName, and ID()()()() properties.