Platform SDK: Exchange Server

IAction::Arg Property

This property specifies the argument for the action, when required.

IDL Definition

[propget] HRESULT Arg([out, retval] VARIANT *pVal); 
[propput] HRESULT Arg([in] VARIANT newVal)

Visual Basic Definition

Property Arg As Variant

Remarks

The value of this property depends on the value of IAction::ActionType, as follows.

Arg Versus ActionType

ActionType Arg Type Description
ACTION_MOVE [Visual Basic] String

[C++] BSTR

The folder where the message is moved.
ACTION_COPY [Visual Basic] String

[C++] BSTR

The folder where the message is copied.
ACTION_REPLY [Visual Basic] Array of strings

[C++] SAFEARRAY of BSTR (VT_ARRAY|VT_BSTR)

The message that is returned to the sender. The first element in the array is the Message ID; the second element is the Folder ID.
ACTION_OOFREPLY [Visual Basic] Array of strings

[C++] SAFEARRAY of BSTR (VT_ARRAY|VT_BSTR)

The message that is returned in the OOF reply to the sender. The first element in the array is the Message ID; the second element is the Folder ID.
ACTION_FORWARD [Visual Basic] Array of strings

[C++] SAFEARRAY of BSTR (VT_ARRAY|VT_BSTR)*

The list of recipients to whom the message is forwarded
ACTION_DELEGATE [Visual Basic] Array of strings

[C++] SAFEARRAY of BSTR (VT_ARRAY|VT_BSTR)*

The list of recipients to whom the message is delegated
ACTION_BOUNCE [Visual Basic] String

[C++] BSTR

The reason the message is returned. The reason must be one of:
"BOUNCE_MESSAGE_SIZE_TOO_LARGE"
"BOUNCE_FORMS_MISMATCH"
"BOUNCE_ACCESS_DENIED"
ACTION_TAG [Visual Basic] String

[C++] BSTR

The property assignment, such as PR_EMS_AB_DISPLAY_NAME="Mister Big"

* Note  The list of recipients is an array of Address IDs that you can get through a CDOSession.AddressBook method call (AddressBook returns a collection of Recipients, of which you need the Recipient.ID property).