_Results.Sort Method
Sorts the collection of items by the specified property. The index for the collection is reset to 1 upon completion of this method.
Namespace: Microsoft.Office.Interop.Outlook
Assembly: Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)
Syntax
'Declaration
<DispIdAttribute()> _
Sub Sort ( _
Property As String, _
Descending As Object _
)
'Usage
Dim instance As _Results
Dim Property As String
Dim Descending As Object
instance.Sort(Property, Descending)
[DispIdAttribute()]
void Sort(
string Property,
Object Descending
)
Parameters
Property
Type: System.StringThe name of the property by which to sort, which may be enclosed in brackets (for example, "[CompanyName]"). May not be a user-defined field, and may not be a multi-valued property, such as a category.
Descending
Type: System.ObjectTrue to sort in descending order. The default value is False (ascending).
Remarks
Sort only affects the order of items in a collection. It does not affect the order of items in an explorer view.