Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Compares two specified objects.
Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)
Syntax
'Declaration
Private Function Compare ( _
    x As String, _
    y As String _
) As Integer Implements IComparer(Of String).Compare
'Usage
Dim instance As ServerComparer 
Dim x As String 
Dim y As String 
Dim returnValue As Integer 
returnValue = CType(instance, IComparer(Of String)).Compare(x, _
    y)
int IComparer<string>.Compare(
    string x,
    string y
)
private:
virtual int Compare(
    String^ x, 
    String^ y
) sealed = IComparer<String^>::Compare
private abstract Compare : 
        x:string * 
        y:string -> int  
private override Compare : 
        x:string * 
        y:string -> int
JScript supports the use of explicit interface implementations, but not the declarations of new ones.
Parameters
- x
 Type: String
 A String value.
- y
 Type: String
 A String value.
Return Value
Type: Int32
A Int32 value.
Implements
IComparerCompare(UTP, UTP)