ComboBox.ObjectCollection.IComparer<ComboBox.ObjectCollection.Entry>.Compare Methode

Definition

Vergleicht zwei Objekte und gibt einen Wert zurück, der angibt, ob ein Objekt kleiner als, gleich oder größer als der andere ist.

 virtual int System.Collections.Generic.IComparer<System.Windows.Forms.ComboBox.ObjectCollection.Entry>.Compare(System::Windows::Forms::ComboBox::ObjectCollection::Entry ^ entry1, System::Windows::Forms::ComboBox::ObjectCollection::Entry ^ entry2) = System::Collections::Generic::IComparer<System::Windows::Forms::ComboBox::ObjectCollection::Entry ^>::Compare;
int IComparer<ComboBox.ObjectCollection.Entry>.Compare(System.Windows.Forms.ComboBox.ObjectCollection.Entry? entry1, System.Windows.Forms.ComboBox.ObjectCollection.Entry? entry2);
int IComparer<ComboBox.ObjectCollection.Entry>.Compare(System.Windows.Forms.ComboBox.ObjectCollection.Entry entry1, System.Windows.Forms.ComboBox.ObjectCollection.Entry entry2);
abstract member System.Collections.Generic.IComparer<System.Windows.Forms.ComboBox.ObjectCollection.Entry>.Compare : System.Windows.Forms.ComboBox.ObjectCollection.Entry * System.Windows.Forms.ComboBox.ObjectCollection.Entry -> int
override this.System.Collections.Generic.IComparer<System.Windows.Forms.ComboBox.ObjectCollection.Entry>.Compare : System.Windows.Forms.ComboBox.ObjectCollection.Entry * System.Windows.Forms.ComboBox.ObjectCollection.Entry -> int
Function Compare (entry1 As ComboBox.ObjectCollection.Entry, entry2 As ComboBox.ObjectCollection.Entry) As Integer Implements IComparer(Of ComboBox.ObjectCollection.Entry).Compare

Parameter

entry1
System.Windows.Forms.ComboBox.ObjectCollection.Entry

Der zu vergleichende Eintrag

entry2
System.Windows.Forms.ComboBox.ObjectCollection.Entry

Der zu vergleichende Eintrag.

Gibt zurück

Eine signierte ganze Zahl, die die relativen Werte von x und y, wie in der folgenden Tabelle dargestellt, angibt.

Wert: Bedeutung
Kleiner als Null x ist kleiner als y.
Null x entspricht y.
Größer als Null x ist größer als y.

Implementiert

Gilt für: