Metoda SfcCollatedDictionaryCollection<T, K, ParentT>.IComparer<K>.Compare
Nie należy odwoływać się do tego elementu członkowskiego bezpośrednio w kodzie. Obsługuje on infrastrukturę programu SQL Server.Porównuje dwa klucze.
Przestrzeń nazw: Microsoft.SqlServer.Management.Sdk.Sfc
Zestaw: Microsoft.SqlServer.Management.Sdk.Sfc (w Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Składnia
'Deklaracja
Private Function Compare ( _
key1 As K, _
key2 As K _
) As Integer Implements IComparer(Of K).Compare
'Użycie
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
Język JScript obsługuje używanie jawnych implementacji interfejsów, ale nie obsługuje deklarowania nowych.
Wartość zwracana
Typ: System.Int32
A Int32 wartości.