ServerComparer.IComparer<String>.IComparer 方法
比較兩個指定的物件。
命名空間: Microsoft.SqlServer.Management.Common
組件: Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)
語法
'宣告
Private Function Compare ( _
x As String, _
y As String _
) As Integer Implements IComparer(Of String).Compare
'用途
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 支援明確介面實作的使用,但不支援新介面實作的宣告。
參數
- x
型別:String
String 值。
- y
型別:String
String 值。
傳回值
型別:Int32
Int32 值。
實作
IComparerCompare(UTP, UTP)