Edit

Share via


OrderFields Interface

Definition

Represents the collection of OrderField objects in a view.

public interface class OrderFields : Microsoft::Office::Interop::Outlook::_OrderFields
[System.Runtime.InteropServices.Guid("0006309A-0000-0000-C000-000000000046")]
public interface OrderFields : Microsoft.Office.Interop.Outlook._OrderFields
Public Interface OrderFields
Implements _OrderFields
Derived
Attributes
Implements

Remarks

This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _OrderFields.

The OrderFields collection represents the Outlook item properties used to sort Outlook items displayed in the view. Use the Add(String, Object) method or the OrderFields collection to create a new order field for the following objects derived from the View object:

OrderField objects contained in an OrderFields collection are applied to Outlook items displayed in the view in the order in which the objects are contained in the collection.

Properties

Application

Returns an Application object that represents the parent Outlook application for the object. Read-only.

(Inherited from _OrderFields)
Class

Returns an OlObjectClass constant indicating the object's class. Read-only.

(Inherited from _OrderFields)
Count

Returns an Integer (int in C#) value indicating the count of OrderField objects in the specified collection. Read-only.

(Inherited from _OrderFields)
Item[Object]

Returns an OrderField object from the collection.

(Inherited from _OrderFields)
Parent

Returns the parent Object of the specified object. Read-only.

(Inherited from _OrderFields)
Session

Returns the NameSpace object for the current session. Read-only.

(Inherited from _OrderFields)

Methods

Add(String, Object)

Creates a new OrderField object and appends it to the OrderFields collection.

(Inherited from _OrderFields)
Insert(String, Object, Object)

Creates a new OrderField object and inserts it at the specified index within the OrderFields collection.

(Inherited from _OrderFields)
Remove(Object)

Removes an object from the collection.

(Inherited from _OrderFields)
RemoveAll()

Removes all sorting properties from the OrderFields collection.

(Inherited from _OrderFields)

Applies to