TypeConverter.SortProperties 方法

对属性 (Property) 的集合进行排序。

**命名空间:**System.ComponentModel
**程序集:**System(在 system.dll 中)

语法

声明
Protected Function SortProperties ( _
    props As PropertyDescriptorCollection, _
    names As String() _
) As PropertyDescriptorCollection
用法
Dim props As PropertyDescriptorCollection
Dim names As String()
Dim returnValue As PropertyDescriptorCollection

returnValue = Me.SortProperties(props, names)
protected PropertyDescriptorCollection SortProperties (
    PropertyDescriptorCollection props,
    string[] names
)
protected:
PropertyDescriptorCollection^ SortProperties (
    PropertyDescriptorCollection^ props, 
    array<String^>^ names
)
protected PropertyDescriptorCollection SortProperties (
    PropertyDescriptorCollection props, 
    String[] names
)
protected function SortProperties (
    props : PropertyDescriptorCollection, 
    names : String[]
) : PropertyDescriptorCollection

参数

  • names
    按您要属性 (Property) 在集合中出现的顺序排列的名称的数组。

返回值

包含已排序属性 (Property) 的 PropertyDescriptorCollection

备注

集合中所有不在名称数组中的属性 (Property) 都按字母顺序添加到结尾。如果 names 参数是空数组或 空引用(在 Visual Basic 中为 Nothing),该集合中的所有属性 (Property) 都按字母顺序排序。

平台

Windows 98、Windows 2000 SP4、Windows Millennium Edition、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

TypeConverter 类
TypeConverter 成员
System.ComponentModel 命名空间
PropertyDescriptorCollection 类
TypeConverter 类