TypeConverter.SortProperties(PropertyDescriptorCollection, String[]) 메서드

정의

속성 컬렉션을 정렬합니다.

protected:
 System::ComponentModel::PropertyDescriptorCollection ^ SortProperties(System::ComponentModel::PropertyDescriptorCollection ^ props, cli::array <System::String ^> ^ names);
protected System.ComponentModel.PropertyDescriptorCollection SortProperties (System.ComponentModel.PropertyDescriptorCollection props, string[] names);
member this.SortProperties : System.ComponentModel.PropertyDescriptorCollection * string[] -> System.ComponentModel.PropertyDescriptorCollection
Protected Function SortProperties (props As PropertyDescriptorCollection, names As String()) As PropertyDescriptorCollection

매개 변수

props
PropertyDescriptorCollection

정렬할 속성이 포함된 PropertyDescriptorCollection입니다.

names
String[]

컬렉션에 속성을 표시할 순서대로 나열된 이름 배열입니다.

반환

PropertyDescriptorCollection

정렬된 속성을 포함하는 PropertyDescriptorCollection입니다.

설명

이름 배열에 아직 없는 컬렉션의 모든 속성은 끝에 사전순으로 추가됩니다. 매개 변수가 names 빈 배열이거나 null컬렉션의 모든 속성이 사전순으로 정렬됩니다.

적용 대상

추가 정보