Partager via


OrderFields.Insert Method (Outlook)

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

Version Information

Version Added: Outlook 2007

Syntax

expression .Insert(PropertyName, Index, IsDescending)

expression A variable that represents an OrderFields object.

Parameters

Name

Required/Optional

Data Type

Description

PropertyName

Required

String

The name of the property to which the new object is associated.

Index

Required

Variant

Either the index number at which to insert the new object, or a value used to match the ViewXMLSchemaName property value of an object in the collection at where the new object is to be inserted.

IsDescending

Optional

Boolean

The value used to set the IsDescending property of the new OrderField object. If this value is not specified, the default value of the IsDescending property is used.

Return Value

An OrderField object that represents the new order field.

See Also

Concepts

OrderFields Object Members

OrderFields Object