PropertyDescriptorCollection.InternalSort 方法

定義

排序這個集合的成員。

多載

InternalSort(IComparer)

使用指定的 IComparer,排序這個集合的成員。

InternalSort(String[])

排序這個集合的成員。 首先會套用指定的順序,其後是這個集合的預設排序,通常是依字母順序。

InternalSort(IComparer)

來源:
PropertyDescriptorCollection.cs
來源:
PropertyDescriptorCollection.cs
來源:
PropertyDescriptorCollection.cs

使用指定的 IComparer,排序這個集合的成員。

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

比較子,用於將這個集合中的 PropertyDescriptor 物件排序。

另請參閱

適用於

InternalSort(String[])

來源:
PropertyDescriptorCollection.cs
來源:
PropertyDescriptorCollection.cs
來源:
PropertyDescriptorCollection.cs

排序這個集合的成員。 首先會套用指定的順序,其後是這個集合的預設排序,通常是依字母順序。

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[]

字串的陣列,描述要將這個集合中 PropertyDescriptor 物件排序的順序。

範例

下列程式代碼範例會定義 方法的 InternalSort 排序順序。 PropertyDescriptorCollection如果 包含名稱為 ABCD的四PropertyDescriptor個物件,則 的屬性myNewColl會依、 BAC的順序D排序。

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

另請參閱

適用於