TypeConverter.SortProperties(PropertyDescriptorCollection, String[]) Metode

Definisi

Mengurutkan kumpulan properti.

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

Parameter

props
PropertyDescriptorCollection

PropertyDescriptorCollection Yang memiliki properti untuk diurutkan.

names
String[]

Array nama dalam urutan yang Anda inginkan agar properti muncul dalam koleksi.

Mengembalikan

yang PropertyDescriptorCollection berisi properti yang diurutkan.

Keterangan

Semua properti dalam koleksi yang belum ada dalam array nama ditambahkan menurut abjad ke akhir. names Jika parameter adalah array kosong atau null, semua properti dalam koleksi diurutkan menurut abjad.

Berlaku untuk

Lihat juga