Nyelv

EventDescriptorCollection.Sort Metódus

Definíció

Rendezi ennek a csoportnak a tagjait EventDescriptorCollection.

Túlterhelések

Name Description
Sort(String[], IComparer)

Rendezi ennek tagjait EventDescriptorCollectionegy megadott rendezési sorrend és egy IComparer.

Sort(String[])

Rendezi ennek tagjait EventDescriptorCollectionegy megadott rendezési sorrend alapján.

Sort()

Ennek a gyűjteménynek EventDescriptorCollectiona tagjait rendezi az alapértelmezett rendezéssel, amely általában betűrendes.

Sort(IComparer)

Ennek tagjait EventDescriptorCollectiona megadott IComparermódon rendezi.

Sort(String[], IComparer)

Forrás:
EventDescriptorCollection.cs
Forrás:
EventDescriptorCollection.cs
Forrás:
EventDescriptorCollection.cs
Forrás:
EventDescriptorCollection.cs
Forrás:
EventDescriptorCollection.cs

Rendezi ennek tagjait EventDescriptorCollectionegy megadott rendezési sorrend és egy IComparer.

public:
 virtual System::ComponentModel::EventDescriptorCollection ^ Sort(cli::array <System::String ^> ^ names, System::Collections::IComparer ^ comparer);
public virtual System.ComponentModel.EventDescriptorCollection Sort(string[] names, System.Collections.IComparer comparer);
abstract member Sort : string[] * System.Collections.IComparer -> System.ComponentModel.EventDescriptorCollection
override this.Sort : string[] * System.Collections.IComparer -> System.ComponentModel.EventDescriptorCollection
Public Overridable Function Sort (names As String(), comparer As IComparer) As EventDescriptorCollection

Paraméterek

names
String[]

Sztringek tömbje, amelyek a gyűjtemény objektumainak rendezésének EventDescriptor sorrendjét írják le.

comparer
IComparer

A IComparer gyűjtemény objektumainak rendezésére EventDescriptor használható.

Válaszok

Az új EventDescriptorCollection.

Példák

Az alábbi példakód a metódus rendezési sorrendjét Sort határozza meg. Ha a EventDescriptorCollection lista négy EventDescriptor objektumot tartalmaz, amelyek neve A, BCés D, tulajdonsága myNewColl rendezve lesz a sorrendben D, BAés C.

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

Megjegyzések

Először a megadott rendezési sorrendet alkalmazza a rendszer, majd a megadott IComparersorrendet követve.

Note

Az HostProtectionAttribute osztályra alkalmazott attribútum a következő Resources tulajdonságértéket tartalmazza: Synchronization. Ez HostProtectionAttribute nem érinti az asztali alkalmazásokat (amelyek általában egy ikonra duplán kattintva, egy parancs beírásával vagy egy URL-cím beírásával indulnak el a böngészőben). További információ: HostProtectionAttribute osztály vagy SQL Server Programozási és gazdagépvédelmi attribútumok.

Lásd még

A következőre érvényes:

Sort(String[])

Forrás:
EventDescriptorCollection.cs
Forrás:
EventDescriptorCollection.cs
Forrás:
EventDescriptorCollection.cs
Forrás:
EventDescriptorCollection.cs
Forrás:
EventDescriptorCollection.cs

Rendezi ennek tagjait EventDescriptorCollectionegy megadott rendezési sorrend alapján.

public:
 virtual System::ComponentModel::EventDescriptorCollection ^ Sort(cli::array <System::String ^> ^ names);
public virtual System.ComponentModel.EventDescriptorCollection Sort(string[] names);
abstract member Sort : string[] -> System.ComponentModel.EventDescriptorCollection
override this.Sort : string[] -> System.ComponentModel.EventDescriptorCollection
Public Overridable Function Sort (names As String()) As EventDescriptorCollection

Paraméterek

names
String[]

Sztringek tömbje, amelyek a gyűjtemény objektumainak rendezésének EventDescriptor sorrendjét írják le.

Válaszok

Az új EventDescriptorCollection.

Példák

Az alábbi példakód a metódus rendezési sorrendjét Sort határozza meg. Ha a EventDescriptorCollection lista négy EventDescriptor objektumot tartalmaz, amelyek neve A, BCés D, tulajdonsága myNewColl rendezve lesz a sorrendben D, BAés C.

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

Megjegyzések

Először a megadott sorrendet alkalmazza a rendszer, majd az alapértelmezett rendezést a gyűjteményhez, amely általában betűrendes.

Note

Az HostProtectionAttribute osztályra alkalmazott attribútum a következő Resources tulajdonságértéket tartalmazza: Synchronization. Ez HostProtectionAttribute nem érinti az asztali alkalmazásokat (amelyek általában egy ikonra duplán kattintva, egy parancs beírásával vagy egy URL-cím beírásával indulnak el a böngészőben). További információ: HostProtectionAttribute osztály vagy SQL Server Programozási és gazdagépvédelmi attribútumok.

Lásd még

A következőre érvényes:

Sort()

Forrás:
EventDescriptorCollection.cs
Forrás:
EventDescriptorCollection.cs
Forrás:
EventDescriptorCollection.cs
Forrás:
EventDescriptorCollection.cs
Forrás:
EventDescriptorCollection.cs

Ennek a gyűjteménynek EventDescriptorCollectiona tagjait rendezi az alapértelmezett rendezéssel, amely általában betűrendes.

public:
 virtual System::ComponentModel::EventDescriptorCollection ^ Sort();
public virtual System.ComponentModel.EventDescriptorCollection Sort();
abstract member Sort : unit -> System.ComponentModel.EventDescriptorCollection
override this.Sort : unit -> System.ComponentModel.EventDescriptorCollection
Public Overridable Function Sort () As EventDescriptorCollection

Válaszok

Az új EventDescriptorCollection.

Példák

Az alábbi példakód a metódus rendezési sorrendjét Sort határozza meg. Ha a EventDescriptorCollection lista négy EventDescriptor objektumot tartalmaz, amelyek neve A, BCés D, tulajdonsága myNewColl rendezve lesz a sorrendben D, BAés C.

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

Megjegyzések

Note

Az HostProtectionAttribute osztályra alkalmazott attribútum a következő Resources tulajdonságértéket tartalmazza: Synchronization. Ez HostProtectionAttribute nem érinti az asztali alkalmazásokat (amelyek általában egy ikonra duplán kattintva, egy parancs beírásával vagy egy URL-cím beírásával indulnak el a böngészőben). További információ: HostProtectionAttribute osztály vagy SQL Server Programozási és gazdagépvédelmi attribútumok.

A következőre érvényes:

Sort(IComparer)

Forrás:
EventDescriptorCollection.cs
Forrás:
EventDescriptorCollection.cs
Forrás:
EventDescriptorCollection.cs
Forrás:
EventDescriptorCollection.cs
Forrás:
EventDescriptorCollection.cs

Ennek tagjait EventDescriptorCollectiona megadott IComparermódon rendezi.

public:
 virtual System::ComponentModel::EventDescriptorCollection ^ Sort(System::Collections::IComparer ^ comparer);
public virtual System.ComponentModel.EventDescriptorCollection Sort(System.Collections.IComparer comparer);
abstract member Sort : System.Collections.IComparer -> System.ComponentModel.EventDescriptorCollection
override this.Sort : System.Collections.IComparer -> System.ComponentModel.EventDescriptorCollection
Public Overridable Function Sort (comparer As IComparer) As EventDescriptorCollection

Paraméterek

comparer
IComparer

A IComparer gyűjtemény objektumainak rendezésére EventDescriptor használható.

Válaszok

Az új EventDescriptorCollection.

Példák

Az alábbi példakód a metódus rendezési sorrendjét Sort határozza meg. Ha a EventDescriptorCollection lista négy EventDescriptor objektumot tartalmaz, amelyek neve A, BCés D, tulajdonsága myNewColl rendezve lesz a sorrendben D, BAés C.

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

Megjegyzések

Először a megadottt IComparer alkalmazza a rendszer, majd az alapértelmezett rendezést a gyűjteményhez, amely általában betűrendes.

Note

Az HostProtectionAttribute osztályra alkalmazott attribútum a következő Resources tulajdonságértéket tartalmazza: Synchronization. Ez HostProtectionAttribute nem érinti az asztali alkalmazásokat (amelyek általában egy ikonra duplán kattintva, egy parancs beírásával vagy egy URL-cím beírásával indulnak el a böngészőben). További információ: HostProtectionAttribute osztály vagy SQL Server Programozási és gazdagépvédelmi attribútumok.

Lásd még

A következőre érvényes: