This documentation is archived and is not being maintained.

OlRuleActionType Enumeration

Specifies the type of rule action for a rule.

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

public enum OlRuleActionType

Member nameDescription
olRuleActionUnknownUnrecognized rule action.
olRuleActionMoveToFolderRule action is to move the message to the specified folder.
olRuleActionAssignToCategoryRule action is to assign categories to the message.
olRuleActionDeleteRule action is to delete the message.
olRuleActionDeletePermanentlyRule action is to permanently delete the message.
olRuleActionCopyToFolderRule action is to copy the message to a specified folder.
olRuleActionForwardRule action is to forward the message to the specified recipients.
olRuleActionForwardAsAttachmentRule action is to forward the message as an attachment to the specified recipients.
olRuleActionRedirectRule action is to redirect the message to the specified recipients.
olRuleActionServerReplyRule action is to request the server to reply with the specified mail item.
olRuleActionTemplateRule action is to use the specified template (.oft) file as a form template.
olRuleActionFlagForActionInDaysRule action is to flag the message for action in the specified number of days.
olRuleActionFlagColorRule action is to flag the message with a specified colored flag.
olRuleActionFlagClearRule action is to clear the message flag.
olRuleActionImportanceRule action is to mark the message with the specified level of importance.
olRuleActionSensitivityRule action is to mark the message with the specified level of sensitivity.
olRuleActionPrintRule action is to print the message on the default printer.
olRuleActionPlaySoundRule action is to play a sound file.
olRuleActionStartApplicationRule action is to run an .exe file.
olRuleActionMarkReadRule action is to mark the message as read.
olRuleActionRunScriptRule action is to run a script.
olRuleActionStopRule action is to stop processing more rules.
olRuleActionCustomActionRule action is to perform a custom action.
olRuleActionNewItemAlertRule action is to display the specified text in the New Item Alert dialog box.
olRuleActionDesktopAlertRule action is to display a desktop alert.
olRuleActionNotifyReadRule action is to request read notification for the message being sent.
olRuleActionNotifyDeliveryRule action is to request delivery notification for the message being sent.
olRuleActionCcMessageRule action is to cc the message to specified recipients.
olRuleActionDeferRule action is to defer delivery of the message by the specified number of minutes.
olRuleActionMarkAsTaskRule action is to mark the message as a task.
olRuleActionClearCategoriesRule action is to clear all the categories assigned to the message.

The list of rule action types in this enumeration includes all the rule actions that the Rules and Alerts Wizard supports. Note that while you can programmatically enumerate all the rule actions for a rule, you can programmatically create a rule with only the most commonly used rule actions. For more information, see Specify Rule Actions.

Show: