EventDescriptorCollection.InternalSort メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
この EventDescriptorCollectionのメンバーを並べ替えます。
オーバーロード
| 名前 | 説明 |
|---|---|
| InternalSort(IComparer) |
指定したIComparerを使用して、このEventDescriptorCollectionのメンバーを並べ替えます。 |
| InternalSort(String[]) |
この EventDescriptorCollectionのメンバーを並べ替えます。 指定した順序が最初に適用され、その後にこのコレクションの既定の並べ替えが適用されます。通常はアルファベット順です。 |
InternalSort(IComparer)
指定したIComparerを使用して、このEventDescriptorCollectionのメンバーを並べ替えます。
protected:
void InternalSort(System::Collections::IComparer ^ sorter);
protected void InternalSort(System.Collections.IComparer? sorter);
protected void InternalSort(System.Collections.IComparer sorter);
member this.InternalSort : System.Collections.IComparer -> unit
Protected Sub InternalSort (sorter As IComparer)
パラメーター
- sorter
- IComparer
このコレクション内の EventDescriptor オブジェクトの並べ替えに使用する比較子。
注釈
sorter パラメーターがnull場合は、既定の並べ替え順序が使用されます。
注
このクラスに適用される HostProtectionAttribute 属性には、次の Resources プロパティ値があります: Synchronization。 HostProtectionAttributeはデスクトップ アプリケーションには影響しません (通常、アイコンをダブルクリックするか、コマンドを入力するか、ブラウザーで URL を入力します)。 詳細については、 HostProtectionAttribute クラスまたは SQL Server プログラミング属性とホスト保護属性に関するページを参照してください。
こちらもご覧ください
適用対象
InternalSort(String[])
この EventDescriptorCollectionのメンバーを並べ替えます。 指定した順序が最初に適用され、その後にこのコレクションの既定の並べ替えが適用されます。通常はアルファベット順です。
protected:
void InternalSort(cli::array <System::String ^> ^ names);
protected void InternalSort(string[]? names);
protected void InternalSort(string[] names);
member this.InternalSort : string[] -> unit
Protected Sub InternalSort (names As String())
パラメーター
- names
- String[]
このコレクション内の EventDescriptor オブジェクトを並べ替える順序を記述する文字列の配列。
例
次のコード例では、 InternalSort メソッドの並べ替え順序を定義します。
EventDescriptorCollectionに名前がA、B、C、Dの 4 つのEventDescriptor オブジェクトが含まれている場合、このEventDescriptorCollectionのプロパティは、D、B、A、およびCの順序で並べ替えられます。
array<String^>^ temp0 = {"D","B"};
this->InternalSort( temp0 );
InternalSort(["D", "B"]);
Me.InternalSort(New String() {"D", "B"})
注釈
注
このクラスに適用される HostProtectionAttribute 属性には、次の Resources プロパティ値があります: Synchronization。 HostProtectionAttributeはデスクトップ アプリケーションには影響しません (通常、アイコンをダブルクリックするか、コマンドを入力するか、ブラウザーで URL を入力します)。 詳細については、 HostProtectionAttribute クラスまたは SQL Server プログラミング属性とホスト保護属性に関するページを参照してください。