PropertyDescriptorCollection.Sort 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
이 컬렉션의 멤버를 정렬합니다.
오버로드
| Name | Description |
|---|---|
| Sort() |
일반적으로 사전순인 이 컬렉션의 기본 정렬을 사용하여 이 컬렉션의 멤버를 정렬합니다. |
| Sort(IComparer) |
지정된 을 사용하여 이 컬렉션의 멤버를 정렬합니다 IComparer. |
| Sort(String[]) |
이 컬렉션의 멤버를 정렬합니다. 지정된 순서가 먼저 적용된 다음 이 컬렉션에 대한 기본 정렬(일반적으로 사전순)이 적용됩니다. |
| Sort(String[], IComparer) |
이 컬렉션의 멤버를 정렬합니다. 지정된 순서가 먼저 적용된 다음 지정된 순서를 사용하여 정렬됩니다 IComparer. |
Sort()
일반적으로 사전순인 이 컬렉션의 기본 정렬을 사용하여 이 컬렉션의 멤버를 정렬합니다.
public:
virtual System::ComponentModel::PropertyDescriptorCollection ^ Sort();
public virtual System.ComponentModel.PropertyDescriptorCollection Sort();
abstract member Sort : unit -> System.ComponentModel.PropertyDescriptorCollection
override this.Sort : unit -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function Sort () As PropertyDescriptorCollection
반품
정렬된 PropertyDescriptor 개체를 포함하는 새 PropertyDescriptorCollection 개체입니다.
적용 대상
Sort(IComparer)
지정된 을 사용하여 이 컬렉션의 멤버를 정렬합니다 IComparer.
public:
virtual System::ComponentModel::PropertyDescriptorCollection ^ Sort(System::Collections::IComparer ^ comparer);
public virtual System.ComponentModel.PropertyDescriptorCollection Sort(System.Collections.IComparer comparer);
abstract member Sort : System.Collections.IComparer -> System.ComponentModel.PropertyDescriptorCollection
override this.Sort : System.Collections.IComparer -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function Sort (comparer As IComparer) As PropertyDescriptorCollection
매개 변수
- comparer
- IComparer
이 컬렉션의 개체를 정렬 PropertyDescriptor 하는 데 사용할 비교자입니다.
반품
정렬된 PropertyDescriptor 개체를 포함하는 새 PropertyDescriptorCollection 개체입니다.
추가 정보
적용 대상
Sort(String[])
이 컬렉션의 멤버를 정렬합니다. 지정된 순서가 먼저 적용된 다음 이 컬렉션에 대한 기본 정렬(일반적으로 사전순)이 적용됩니다.
public:
virtual System::ComponentModel::PropertyDescriptorCollection ^ Sort(cli::array <System::String ^> ^ names);
public virtual System.ComponentModel.PropertyDescriptorCollection Sort(string[] names);
abstract member Sort : string[] -> System.ComponentModel.PropertyDescriptorCollection
override this.Sort : string[] -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function Sort (names As String()) As PropertyDescriptorCollection
매개 변수
- names
- String[]
이 컬렉션의 개체를 정렬할 순서를 PropertyDescriptor 설명하는 문자열 배열입니다.
반품
정렬된 PropertyDescriptor 개체를 포함하는 새 PropertyDescriptorCollection 개체입니다.
예제
다음 코드 예제에서는 메서드의 정렬 순서를 정의합니다 Sort .
PropertyDescriptorCollection 이름, PropertyDescriptorAB및 속성C이 있는 4개의 D 개체를 포함하는 경우 속성 myNewColl 은 순서, DB및 A순으로 C정렬됩니다.
array<String^>^ temp0 = {"D","B"};
myNewColl = this->Sort( temp0 );
myNewColl = Sort(["D", "B"]);
myNewColl = Me.Sort(New String() {"D", "B"})
추가 정보
적용 대상
Sort(String[], IComparer)
이 컬렉션의 멤버를 정렬합니다. 지정된 순서가 먼저 적용된 다음 지정된 순서를 사용하여 정렬됩니다 IComparer.
public:
virtual System::ComponentModel::PropertyDescriptorCollection ^ Sort(cli::array <System::String ^> ^ names, System::Collections::IComparer ^ comparer);
public virtual System.ComponentModel.PropertyDescriptorCollection Sort(string[] names, System.Collections.IComparer comparer);
abstract member Sort : string[] * System.Collections.IComparer -> System.ComponentModel.PropertyDescriptorCollection
override this.Sort : string[] * System.Collections.IComparer -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function Sort (names As String(), comparer As IComparer) As PropertyDescriptorCollection
매개 변수
- names
- String[]
이 컬렉션의 개체를 정렬할 순서를 PropertyDescriptor 설명하는 문자열 배열입니다.
- comparer
- IComparer
이 컬렉션의 개체를 정렬 PropertyDescriptor 하는 데 사용할 비교자입니다.
반품
정렬된 PropertyDescriptor 개체를 포함하는 새 PropertyDescriptorCollection 개체입니다.
예제
다음 코드 예제에서는 메서드의 정렬 순서를 정의합니다 Sort .
PropertyDescriptorCollection 이름, PropertyDescriptorAB및 속성C이 있는 4개의 D 개체를 포함하는 경우 속성 myNewColl 은 순서, DB및 A순으로 C정렬됩니다.
array<String^>^ temp0 = {"D","B"};
myNewColl = this->Sort( temp0 );
myNewColl = Sort(["D", "B"]);
myNewColl = Me.Sort(New String() {"D", "B"})