PropertyDescriptorCollection.InternalSort PropertyDescriptorCollection.InternalSort PropertyDescriptorCollection.InternalSort PropertyDescriptorCollection.InternalSort Method

定義

排序這個集合的成員。Sorts the members of this collection.

多載

InternalSort(IComparer) InternalSort(IComparer) InternalSort(IComparer) InternalSort(IComparer)

使用指定的 IComparer,排序這個集合的成員。Sorts the members of this collection, using the specified IComparer.

InternalSort(String[]) InternalSort(String[]) InternalSort(String[]) InternalSort(String[])

排序這個集合的成員。Sorts the members of this collection. 首先會套用指定的順序,其後是這個集合的預設排序,通常是依字母順序。The specified order is applied first, followed by the default sort for this collection, which is usually alphabetical.

InternalSort(IComparer) InternalSort(IComparer) InternalSort(IComparer) InternalSort(IComparer)

使用指定的 IComparer,排序這個集合的成員。Sorts the members of this collection, using the specified IComparer.

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 IComparer IComparer IComparer

比較子,用於將這個集合中的 PropertyDescriptor 物件排序。A comparer to use to sort the PropertyDescriptor objects in this collection.

另請參閱

InternalSort(String[]) InternalSort(String[]) InternalSort(String[]) InternalSort(String[])

排序這個集合的成員。Sorts the members of this collection. 首先會套用指定的順序,其後是這個集合的預設排序,通常是依字母順序。The specified order is applied first, followed by the default sort for this collection, which is usually alphabetical.

protected:
 void InternalSort(cli::array <System::String ^> ^ names);
protected void InternalSort (string[] names);
member this.InternalSort : string[] -> unit
Protected Sub InternalSort (names As String())

參數

names
String[]

字串的陣列,描述要將這個集合中 PropertyDescriptor 物件排序的順序。An array of strings describing the order in which to sort the PropertyDescriptor objects in this collection.

範例

下列程式碼範例會定義InternalSort方法的排序次序。The following code example defines the sort order for the InternalSort method. B B如果包含四個PropertyDescriptor名稱A為、CD和的D物件, 則的屬性會依順序排序,myNewColl PropertyDescriptorCollectionA、和CIf the PropertyDescriptorCollection contains four PropertyDescriptor objects with the names A, B, C, and D, the properties of myNewColl would be sorted in the order D, B, A, and C.

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

適用於