TypeConverter.SortProperties(PropertyDescriptorCollection, String[]) Yöntem

Tanım

Bir özellik koleksiyonunu sıralar.

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

Parametreler

props
PropertyDescriptorCollection

PropertyDescriptorCollection Sıralanacak özelliklere sahip olan bir.

names
String[]

Özelliklerin koleksiyonda görünmesini istediğiniz sırayla bir ad dizisi.

Döndürülenler

PropertyDescriptorCollection Sıralanmış özellikleri içeren bir.

Açıklamalar

Koleksiyondaki ad dizisinde bulunmayan tüm özellikler sonuna alfabetik olarak eklenir. names Parametresi boş bir dizi veya nullise, koleksiyondaki tüm özellikler alfabetik olarak sıralanır.

Şunlara uygulanır

Ayrıca bkz.