Partager via


_OrderFields.Add Method

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

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Function Add ( _
    PropertyName As String, _
    IsDescending As Object _
) As OrderField
'Usage
Dim instance As _OrderFields
Dim PropertyName As String
Dim IsDescending As Object
Dim returnValue As OrderField

returnValue = instance.Add(PropertyName, _
    IsDescending)
[DispIdAttribute()]
OrderField Add(
    string PropertyName,
    Object IsDescending
)

Parameters

  • PropertyName
    Type: System.String

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

  • IsDescending
    Type: System.Object

    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

Type: Microsoft.Office.Interop.Outlook.OrderField
An OrderField object that represents the new order field.

See Also

Reference

_OrderFields Interface

_OrderFields Members

Microsoft.Office.Interop.Outlook Namespace