次の方法で共有


EventDescriptorCollection.InternalSort メソッド

EventDescriptorCollection のメンバを並べ替えます。

オーバーロードの一覧

指定した IComparer を使用して、 EventDescriptorCollection のメンバを並べ替えます。

[Visual Basic] Overloads Protected Sub InternalSort(IComparer)

[C#] protected void InternalSort(IComparer);

[C++] protected: void InternalSort(IComparer*);

[JScript] protected function InternalSort(IComparer);

EventDescriptorCollection のメンバを並べ替えます。指定した順序が最初に適用され、次にコレクションの既定の並べ替え順序が適用されます。既定の並べ替え順序は、通常はアルファベット順です。

[Visual Basic] Overloads Protected Sub InternalSort(String())

[C#] protected void InternalSort(string[]);

[C++] protected: void InternalSort(String*[]);

[JScript] protected function InternalSort(String[]);

使用例

[Visual Basic, C#, C++] EventDescriptorCollection に、 ABCD という名前の 4 つの EventDescriptor オブジェクトが含まれている場合、この EventDescriptorCollection のプロパティは DBAC という順序に並べ替えられます。

[Visual Basic, C#, C++] メモ   ここでは、InternalSort のオーバーロード形式のうちの 1 つだけについて、使用例を示します。その他の例については、各オーバーロード形式のトピックを参照してください。

 
Me.InternalSort(New String() {"D", "B"})

[C#] 
this.InternalSort(new string[]{"D", "B"});

[C++] 
String* temp0 [] = {S"D", S"B"};
this->InternalSort(temp0);

[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

参照

EventDescriptorCollection クラス | EventDescriptorCollection メンバ | System.ComponentModel 名前空間