Share via


AddressEntries.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 Object, _
    Order As Object _
)
'Usage
Dim instance As AddressEntries
Dim Property As Object
Dim Order As Object

instance.Sort(Property, Order)
[DispIdAttribute()]
void Sort(
    Object Property,
    Object Order
)

Parameters

  • Property
    Type: System.Object

    The 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.

  • Order
    Type: System.Object

    The order for the specified address entries. Can be one of these OlSortOrder constants: olAscending, olDescending, or olSortNone.

Remarks

Sort only affects the order of items in a collection. It does not affect the order of items in an explorer view.

See Also

Reference

AddressEntries Interface

AddressEntries Members

Microsoft.Office.Interop.Outlook Namespace