This documentation is archived and is not being maintained.

PropertyDescriptorCollection.InternalSort Method

Sorts the members of this collection.

Overload List

Sorts the members of this collection, using the specified IComparer.

[Visual Basic] Overloads Protected Sub InternalSort(IComparer)
[C#] protected void InternalSort(IComparer);
[C++] protected: void InternalSort(IComparer*);
[JScript] protected function InternalSort(IComparer);

Sorts the members of this collection. The specified order is applied first, followed by the default sort for this collection, which is usually alphabetical.

[Visual Basic] Overloads Protected Sub InternalSort(String())
[C#] protected void InternalSort(string[]);
[C++] protected: void InternalSort(String*[]);
[JScript] protected function InternalSort(String[]);

Example

[Visual Basic, C#, C++] If the PropertyDescriptorCollection contains four PropertyDescriptor objects with the names A, B, C, and D, this results in the properties of myNewColl sorted in the order D, B, A, and C.

[Visual Basic, C#, C++] Note   This example shows how to use one of the overloaded versions of InternalSort. For other examples that might be available, see the individual overload topics.
[Visual Basic] 
Me.InternalSort(New String() {"D", "B"})

[C#] 
this.InternalSort(new string[]{"D", "B"});

[C++] 
String* temp0 [] = {S"D", S"B"};
this->InternalSort(temp0);

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

PropertyDescriptorCollection Class | PropertyDescriptorCollection Members | System.ComponentModel Namespace

Show: