Share via


UIConnectionInfo.CompareTo 메서드

이 API는 SQL Server 2012 인프라를 지원하기 위한 것으로 코드에서 직접 사용할 수 없습니다.

코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. Used to determine the sort order of the current UIConnectionInfo object in relation to another UIConnectionInfo object.

네임스페이스:  Microsoft.SqlServer.Management.Smo.RegSvrEnum
어셈블리:  Microsoft.SqlServer.RegSvrEnum(Microsoft.SqlServer.RegSvrEnum.dll)

구문

‘선언
Public Function CompareTo ( _
    other As UIConnectionInfo _
) As Integer
‘사용 방법
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

매개 변수

반환 값

유형: System.Int32
코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 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.

구현

IComparable<T>.CompareTo(T)

주의

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

참고 항목

참조

UIConnectionInfo 클래스

Microsoft.SqlServer.Management.Smo.RegSvrEnum 네임스페이스