次の方法で共有


EventDescriptorCollection.Sort メソッド

定義

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

オーバーロード

名前 説明
Sort(String[], IComparer)

指定した並べ替え順序とIComparerを指定して、このEventDescriptorCollectionのメンバーを並べ替えます。

Sort(String[])

指定した並べ替え順序を指定して、この EventDescriptorCollectionのメンバーを並べ替えます。

Sort()

このコレクションの既定の並べ替え (通常はアルファベット順) を使用して、この EventDescriptorCollectionのメンバーを並べ替えます。

Sort(IComparer)

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

Sort(String[], IComparer)

ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs

指定した並べ替え順序とIComparerを指定して、このEventDescriptorCollectionのメンバーを並べ替えます。

public:
 virtual System::ComponentModel::EventDescriptorCollection ^ Sort(cli::array <System::String ^> ^ names, System::Collections::IComparer ^ comparer);
public virtual System.ComponentModel.EventDescriptorCollection Sort(string[] names, System.Collections.IComparer comparer);
abstract member Sort : string[] * System.Collections.IComparer -> System.ComponentModel.EventDescriptorCollection
override this.Sort : string[] * System.Collections.IComparer -> System.ComponentModel.EventDescriptorCollection
Public Overridable Function Sort (names As String(), comparer As IComparer) As EventDescriptorCollection

パラメーター

names
String[]

コレクション内の EventDescriptor オブジェクトを並べ替える順序を記述する文字列の配列。

comparer
IComparer

このコレクション内のEventDescriptor オブジェクトの並べ替えに使用するIComparer

返品

新しい EventDescriptorCollection

次のコード例では、 Sort メソッドの並べ替え順序を定義します。 EventDescriptorCollectionに名前がABCDの 4 つのEventDescriptor オブジェクトが含まれている場合、myNewCollのプロパティは、DBA、およびCの順序で並べ替えられます。

array<String^>^ temp0 = {"D","B"};
myNewColl = this->Sort( temp0 );
myNewColl = Sort(["D", "B"]);
myNewColl = Me.Sort(New String() {"D", "B"})

注釈

指定した並べ替え順序が最初に適用され、次に指定した IComparerを使用した並べ替えが適用されます。

このクラスに適用される HostProtectionAttribute 属性には、次の Resources プロパティ値があります: SynchronizationHostProtectionAttributeはデスクトップ アプリケーションには影響しません (通常、アイコンをダブルクリックするか、コマンドを入力するか、ブラウザーで URL を入力します)。 詳細については、 HostProtectionAttribute クラスまたは SQL Server プログラミング属性とホスト保護属性に関するページを参照してください。

こちらもご覧ください

適用対象

Sort(String[])

ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs

指定した並べ替え順序を指定して、この EventDescriptorCollectionのメンバーを並べ替えます。

public:
 virtual System::ComponentModel::EventDescriptorCollection ^ Sort(cli::array <System::String ^> ^ names);
public virtual System.ComponentModel.EventDescriptorCollection Sort(string[] names);
abstract member Sort : string[] -> System.ComponentModel.EventDescriptorCollection
override this.Sort : string[] -> System.ComponentModel.EventDescriptorCollection
Public Overridable Function Sort (names As String()) As EventDescriptorCollection

パラメーター

names
String[]

コレクション内の EventDescriptor オブジェクトを並べ替える順序を記述する文字列の配列。

返品

新しい EventDescriptorCollection

次のコード例では、 Sort メソッドの並べ替え順序を定義します。 EventDescriptorCollectionに名前がABCDの 4 つのEventDescriptor オブジェクトが含まれている場合、myNewCollのプロパティは、DBA、およびCの順序で並べ替えられます。

array<String^>^ temp0 = {"D","B"};
myNewColl = this->Sort( temp0 );
myNewColl = Sort(["D", "B"]);
myNewColl = Me.Sort(New String() {"D", "B"})

注釈

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

このクラスに適用される HostProtectionAttribute 属性には、次の Resources プロパティ値があります: SynchronizationHostProtectionAttributeはデスクトップ アプリケーションには影響しません (通常、アイコンをダブルクリックするか、コマンドを入力するか、ブラウザーで URL を入力します)。 詳細については、 HostProtectionAttribute クラスまたは SQL Server プログラミング属性とホスト保護属性に関するページを参照してください。

こちらもご覧ください

適用対象

Sort()

ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs

このコレクションの既定の並べ替え (通常はアルファベット順) を使用して、この EventDescriptorCollectionのメンバーを並べ替えます。

public:
 virtual System::ComponentModel::EventDescriptorCollection ^ Sort();
public virtual System.ComponentModel.EventDescriptorCollection Sort();
abstract member Sort : unit -> System.ComponentModel.EventDescriptorCollection
override this.Sort : unit -> System.ComponentModel.EventDescriptorCollection
Public Overridable Function Sort () As EventDescriptorCollection

返品

新しい EventDescriptorCollection

次のコード例では、 Sort メソッドの並べ替え順序を定義します。 EventDescriptorCollectionに名前がABCDの 4 つのEventDescriptor オブジェクトが含まれている場合、myNewCollのプロパティは、DBA、およびCの順序で並べ替えられます。

array<String^>^ temp0 = {"D","B"};
myNewColl = this->Sort( temp0 );
myNewColl = Sort(["D", "B"]);
myNewColl = Me.Sort(New String() {"D", "B"})

注釈

このクラスに適用される HostProtectionAttribute 属性には、次の Resources プロパティ値があります: SynchronizationHostProtectionAttributeはデスクトップ アプリケーションには影響しません (通常、アイコンをダブルクリックするか、コマンドを入力するか、ブラウザーで URL を入力します)。 詳細については、 HostProtectionAttribute クラスまたは SQL Server プログラミング属性とホスト保護属性に関するページを参照してください。

適用対象

Sort(IComparer)

ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs
ソース:
EventDescriptorCollection.cs

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

public:
 virtual System::ComponentModel::EventDescriptorCollection ^ Sort(System::Collections::IComparer ^ comparer);
public virtual System.ComponentModel.EventDescriptorCollection Sort(System.Collections.IComparer comparer);
abstract member Sort : System.Collections.IComparer -> System.ComponentModel.EventDescriptorCollection
override this.Sort : System.Collections.IComparer -> System.ComponentModel.EventDescriptorCollection
Public Overridable Function Sort (comparer As IComparer) As EventDescriptorCollection

パラメーター

comparer
IComparer

このコレクション内のEventDescriptor オブジェクトの並べ替えに使用するIComparer

返品

新しい EventDescriptorCollection

次のコード例では、 Sort メソッドの並べ替え順序を定義します。 EventDescriptorCollectionに名前がABCDの 4 つのEventDescriptor オブジェクトが含まれている場合、myNewCollのプロパティは、DBA、およびCの順序で並べ替えられます。

array<String^>^ temp0 = {"D","B"};
myNewColl = this->Sort( temp0 );
myNewColl = Sort(["D", "B"]);
myNewColl = Me.Sort(New String() {"D", "B"})

注釈

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

このクラスに適用される HostProtectionAttribute 属性には、次の Resources プロパティ値があります: SynchronizationHostProtectionAttributeはデスクトップ アプリケーションには影響しません (通常、アイコンをダブルクリックするか、コマンドを入力するか、ブラウザーで URL を入力します)。 詳細については、 HostProtectionAttribute クラスまたは SQL Server プログラミング属性とホスト保護属性に関するページを参照してください。

こちらもご覧ください

適用対象