EventDescriptorCollection.Sort 메서드

정의

EventDescriptorCollection의 멤버를 정렬합니다.

오버로드

Sort(String[], IComparer)

지정된 정렬 순서 및 EventDescriptorCollection를 사용하여 이 IComparer의 멤버를 정렬합니다.

Sort(String[])

지정된 정렬 순서를 사용하여 이 EventDescriptorCollection의 멤버를 정렬합니다.

Sort()

대개 사전순인 이 컬렉션의 기본 정렬 순서를 사용하여 이 EventDescriptorCollection의 멤버를 정렬합니다.

Sort(IComparer)

지정된 EventDescriptorCollection를 사용하여 이 IComparer의 멤버를 정렬합니다.

Sort(String[], IComparer)

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

지정된 정렬 순서 및 EventDescriptorCollection를 사용하여 이 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

매개 변수

names
String[]

컬렉션에 있는 EventDescriptor 개체의 정렬 순서를 기술하는 문자열 배열입니다.

comparer
IComparer

이 컬렉션의 IComparer 개체를 정렬하는 데 사용할 EventDescriptor입니다.

반환

EventDescriptorCollection입니다.

예제

다음 코드 예제에서는 정렬 순서를 정의 합니다 Sort 메서드. 에 EventDescriptorCollection 이름이 , , BCD인 4개의 EventDescriptor 개체가 포함된 경우 의 myNewColl 속성은 , , ABC순서D로 정렬A됩니다.

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

설명

지정된 정렬 순서가 먼저 적용된 다음 지정된 를 사용하여 정렬됩니다 IComparer.

참고

합니다 HostProtectionAttribute 이 클래스에 적용 된 특성에는 다음과 같은 Resources 속성 값: Synchronization합니다. HostProtectionAttribute는 대개 아이콘을 두 번 클릭하거나, 명령을 입력하거나, 브라우저에서 URL을 입력하여 시작되는 데스크톱 애플리케이션에 영향을 미치지 않습니다. 자세한 내용은 참조는 HostProtectionAttribute 클래스 또는 SQL Server 프로그래밍 및 호스트 보호 특성합니다.

추가 정보

적용 대상

Sort(String[])

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

지정된 정렬 순서를 사용하여 이 EventDescriptorCollection의 멤버를 정렬합니다.

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

매개 변수

names
String[]

컬렉션에 있는 EventDescriptor 개체의 정렬 순서를 기술하는 문자열 배열입니다.

반환

EventDescriptorCollection입니다.

예제

다음 코드 예제에서는 정렬 순서를 정의 합니다 Sort 메서드. 에 EventDescriptorCollection 이름이 , , BCD인 4개의 EventDescriptor 개체가 포함된 경우 의 myNewColl 속성은 , , ABC순서D로 정렬A됩니다.

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

설명

지정된 순서가 먼저 적용된 다음 대개 사전순인 이 컬렉션의 기본 정렬 순서가 적용됩니다.

참고

합니다 HostProtectionAttribute 이 클래스에 적용 된 특성에는 다음과 같은 Resources 속성 값: Synchronization합니다. HostProtectionAttribute는 대개 아이콘을 두 번 클릭하거나, 명령을 입력하거나, 브라우저에서 URL을 입력하여 시작되는 데스크톱 애플리케이션에 영향을 미치지 않습니다. 자세한 내용은 참조는 HostProtectionAttribute 클래스 또는 SQL Server 프로그래밍 및 호스트 보호 특성합니다.

추가 정보

적용 대상

Sort()

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

대개 사전순인 이 컬렉션의 기본 정렬 순서를 사용하여 이 EventDescriptorCollection의 멤버를 정렬합니다.

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

반환

EventDescriptorCollection입니다.

예제

다음 코드 예제에서는 정렬 순서를 정의 합니다 Sort 메서드. 에 EventDescriptorCollection 이름이 , , BCD인 4개의 EventDescriptor 개체가 포함된 경우 의 myNewColl 속성은 , , ABC순서D로 정렬A됩니다.

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

설명

참고

합니다 HostProtectionAttribute 이 클래스에 적용 된 특성에는 다음과 같은 Resources 속성 값: Synchronization합니다. HostProtectionAttribute는 대개 아이콘을 두 번 클릭하거나, 명령을 입력하거나, 브라우저에서 URL을 입력하여 시작되는 데스크톱 애플리케이션에 영향을 미치지 않습니다. 자세한 내용은 참조는 HostProtectionAttribute 클래스 또는 SQL Server 프로그래밍 및 호스트 보호 특성합니다.

적용 대상

Sort(IComparer)

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

지정된 EventDescriptorCollection를 사용하여 이 IComparer의 멤버를 정렬합니다.

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

매개 변수

comparer
IComparer

이 컬렉션의 IComparer 개체를 정렬하는 데 사용할 EventDescriptor입니다.

반환

EventDescriptorCollection입니다.

예제

다음 코드 예제에서는 정렬 순서를 정의 합니다 Sort 메서드. 에 EventDescriptorCollection 이름이 , , BCD인 4개의 EventDescriptor 개체가 포함된 경우 의 myNewColl 속성은 , , ABC순서D로 정렬A됩니다.

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

설명

지정된 IComparer 가 먼저 적용되고 이 컬렉션에 대한 기본 정렬(일반적으로 사전순)이 적용됩니다.

참고

합니다 HostProtectionAttribute 이 클래스에 적용 된 특성에는 다음과 같은 Resources 속성 값: Synchronization합니다. HostProtectionAttribute는 대개 아이콘을 두 번 클릭하거나, 명령을 입력하거나, 브라우저에서 URL을 입력하여 시작되는 데스크톱 애플리케이션에 영향을 미치지 않습니다. 자세한 내용은 참조는 HostProtectionAttribute 클래스 또는 SQL Server 프로그래밍 및 호스트 보호 특성합니다.

추가 정보

적용 대상