NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TypeConverter.SortProperties

Sorts a collection of properties.

[Visual Basic]
Protected Function SortProperties( _
   ByVal props As PropertyDescriptorCollection, _
   ByVal names() As String _
) As PropertyDescriptorCollection
[C#]
protected PropertyDescriptorCollection SortProperties(
   PropertyDescriptorCollection props,
   string[] names
);
[C++]
protected: PropertyDescriptorCollection* SortProperties(
   PropertyDescriptorCollection* props,
   String* names[]
);
[JScript]
protected function SortProperties(
   props : PropertyDescriptorCollection,
   names : String[]
) : PropertyDescriptorCollection;

Parameters

props
A PropertyDescriptorCollection that has the properties to sort.
names
An array of names in the order you want the properties to appear in the collection.

Remarks

All properties in the collection that are not in the array of names, will be added alphabetically to the end. If the names array is empty or a null reference (in Visual Basic Nothing), all the properties in the collection will be sorted alphabetically.

See Also

TypeConverter Class | TypeConverter Members | System.ComponentModel Namespace | PropertyDescriptorCollection | TypeConverter