Edit

Share via


EventDescriptorCollection.InternalSort Method

Definition

Sorts the members of this EventDescriptorCollection.

Overloads

InternalSort(IComparer)

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

InternalSort(String[])

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

InternalSort(IComparer)

Source:
EventDescriptorCollection.cs
Source:
EventDescriptorCollection.cs
Source:
EventDescriptorCollection.cs

Sorts the members of this EventDescriptorCollection, 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 EventDescriptor objects in this collection.

Remarks

If the sorter parameter is null, the default sort order is used.

Note

The HostProtectionAttribute attribute applied to this class has the following Resources property value: Synchronization. The HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.

See also

Applies to

InternalSort(String[])

Source:
EventDescriptorCollection.cs
Source:
EventDescriptorCollection.cs
Source:
EventDescriptorCollection.cs

Sorts the members of this EventDescriptorCollection. 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 EventDescriptor objects in this collection.

Examples

The following code example defines the sort order for the InternalSort method. If the EventDescriptorCollection contains four EventDescriptor objects with the names A, B, C, and D, the properties of this EventDescriptorCollection 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"})

Remarks

Note

The HostProtectionAttribute attribute applied to this class has the following Resources property value: Synchronization. The HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.

See also

Applies to