PimItemCollection.Sort Method
3/29/2010
Sorts the PIM items in a collection based on one of the PimItem properties. You can specify either an ascending or a descending sort order.
Namespace: Microsoft.WindowsMobile.PocketOutlook
Assembly: Microsoft.WindowsMobile.PocketOutlook (in microsoft.windowsmobile.pocketoutlook.dll)
Syntax
public bool Sort (
string propertyName,
bool descending
)
'Declaration
Public Function Sort ( _
propertyName As String, _
descending As Boolean _
) As Boolean
Parameters
propertyName
The name of the property to sort on. For example:myItemCollection.Sort("Subject", true);
- descending
true to sort in descending order, false otherwise.
Return Value
true if the sort was successful; otherwise false.
Remarks
The Sort method is supported if SupportsSorting is true; otherwise, this method throws a NotSupportedException.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.
See Also
Reference
PimItemCollection Class
PimItemCollection Members
Microsoft.WindowsMobile.PocketOutlook Namespace