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

Definition

Vergleicht zwei Objekte und gibt einen Wert zurück, der angibt, ob ein Wert niedriger, gleich oder größer als der andere Wert 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);
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 Eintrag, mit dem verglichen werden soll.

Gibt zurück

Int32

Eine ganze Zahl mit Vorzeichen, die die relativen Werte von x und y angibt, wie in der folgenden Tabelle veranschaulicht.

Wert Bedeutung
Kleiner als 0 (null) x ist kleiner als y.
Zero x ist gleich y.
Größer als 0 (null) x ist größer als y.

Implementiert

Gilt für