Condividi tramite


Metodo IComparer(K).Compare

Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Compares two keys.

Spazio dei nomi  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Sintassi

'Dichiarazione
Private Function Compare ( _
    key1 As K, _
    key2 As K _
) As Integer Implements IComparer(Of K).Compare
'Utilizzo
Dim instance As SfcCollatedDictionaryCollection
Dim key1 As K
Dim key2 As K
Dim returnValue As Integer

returnValue = CType(instance, IComparer(Of K)).Compare(key1, _
    key2)
int IComparer<K>.Compare(
    K key1,
    K key2
)
private:
virtual int Compare(
    K key1, 
    K key2
) sealed = IComparer<K>::Compare
private abstract Compare : 
        key1:'K * 
        key2:'K -> int 
private override Compare : 
        key1:'K * 
        key2:'K -> int 
JScript supporta l'utilizzo di implementazioni di interfacce esplicite, ma non la dichiarazione di nuove interfacce.

Parametri

  • key1
    Tipo: K
    The first key to compare.
  • key2
    Tipo: K
    The second key to compare.

Valore restituito

Tipo: System. . :: . .Int32
A Int32 value.

Implementa

IComparer< (Of < ( <'T> ) > ) >. . :: . .Compare(T, T)