Freigeben über


SfcCollatedDictionaryCollection<T, K, ParentT>.IComparer<K>.Compare-Methode

Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. Compares two keys.

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntax

'Declaration
Private Function Compare ( _
    key1 As K, _
    key2 As K _
) As Integer Implements IComparer(Of K).Compare
'Usage
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 unterstützt die Verwendung expliziter Schnittstellenimplementierungen, aber nicht die Deklaration neuer Schnittstellenimplementierungen.

Parameter

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

Rückgabewert

Typ: System.Int32
A Int32 value.

Implementiert

IComparer<T>.Compare(T, T)

Siehe auch

Verweis

SfcCollatedDictionaryCollection<T, K, ParentT> Klasse

Microsoft.SqlServer.Management.Sdk.Sfc-Namespace