PropertyDescriptorCollection.InternalSort Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sorts the members of this collection.
Overloads
InternalSort(IComparer) |
Sorts the members of this collection, using the specified IComparer. |
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)
Sorts the members of this collection, using the specified 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)
Parameters
- sorter
- IComparer
A comparer to use to sort the PropertyDescriptor objects in this collection.
See also
Applies to
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);
protected void InternalSort (string[]? names);
member this.InternalSort : string[] -> unit
Protected Sub InternalSort (names As String())
Parameters
- names
- String[]
An array of strings describing the order in which to sort the PropertyDescriptor objects in this collection.
Examples
The following code example defines the sort order for the InternalSort method. If 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"})
See also
Applies to
Povratne informacije
https://aka.ms/ContentUserFeedback.
Kmalu na voljo: V letu 2024 bomo ukinili storitev Težave v storitvi GitHub kot mehanizem za povratne informacije za vsebino in jo zamenjali z novim sistemom za povratne informacije. Za več informacij si oglejte:Pošlji in prikaži povratne informacije za