TypeConverter.SortProperties(PropertyDescriptorCollection, String[]) TypeConverter.SortProperties(PropertyDescriptorCollection, String[]) TypeConverter.SortProperties(PropertyDescriptorCollection, String[]) TypeConverter.SortProperties(PropertyDescriptorCollection, String[]) Method

定義

排序屬性的集合。Sorts a collection of properties.

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

參數

names
String[]

依據您要屬性在集合中出現之順序的名稱陣列。An array of names in the order you want the properties to appear in the collection.

傳回

備註

集合中尚未存在於名稱陣列中的所有屬性都會以字母順序新增至結尾。All properties in the collection that are not already in the array of names are added alphabetically to the end. 如果參數是空陣列或null, 則集合中的所有屬性都會依字母順序排序。 namesIf the names parameter is an empty array or null, all the properties in the collection are sorted alphabetically.

適用於

另請參閱