다음을 통해 공유


EventDescriptorCollection.Sort 메서드

정의

EventDescriptorCollection멤버를 정렬합니다.

오버로드

Name Description
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
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 이름, BDC및 속성A이 있는 4개의 EventDescriptor 개체를 포함하는 경우 속성 myNewColl 은 순서, BAC순으로 D정렬됩니다.

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

설명

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

메모

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

추가 정보

적용 대상

Sort(String[])

Source:
EventDescriptorCollection.cs
Source:
EventDescriptorCollection.cs
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 이름, BDC및 속성A이 있는 4개의 EventDescriptor 개체를 포함하는 경우 속성 myNewColl 은 순서, BAC순으로 D정렬됩니다.

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

설명

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

메모

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

추가 정보

적용 대상

Sort()

Source:
EventDescriptorCollection.cs
Source:
EventDescriptorCollection.cs
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 이름, BDC및 속성A이 있는 4개의 EventDescriptor 개체를 포함하는 경우 속성 myNewColl 은 순서, BAC순으로 D정렬됩니다.

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

설명

메모

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

적용 대상

Sort(IComparer)

Source:
EventDescriptorCollection.cs
Source:
EventDescriptorCollection.cs
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 이름, BDC및 속성A이 있는 4개의 EventDescriptor 개체를 포함하는 경우 속성 myNewColl 은 순서, BAC순으로 D정렬됩니다.

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

설명

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

메모

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

추가 정보

적용 대상