TypeConverter.SortProperties(PropertyDescriptorCollection, String[]) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
排序屬性的集合。
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
參數
PropertyDescriptorCollection,具有要排序的屬性。
- names
- String[]
依據您要屬性在集合中出現之順序的名稱陣列。
傳回
PropertyDescriptorCollection,包含已排序的屬性。
備註
集合中尚未在名稱陣列中的所有屬性都會依字母順序新增至結尾。 names
如果參數是空陣列或 null
,則集合中的所有屬性都會依字母順序排序。