Table of Contents

Class RuleActions

Namespace
Microsoft.Exchange.WebServices.Data
Assembly
Microsoft.Exchange.WebServices.dll

Represents the set of actions available for a rule.

public sealed class RuleActions : ComplexProperty
Inheritance
RuleActions
Inherited Members

Properties

AssignCategories

Gets the categories that should be stamped on incoming messages. To disable stamping incoming messages with categories, set AssignCategories to null.

public StringList AssignCategories { get; }

Property Value

StringList

CopyToFolder

Gets or sets the Id of the folder incoming messages should be copied to. To disable copying incoming messages to a folder, set CopyToFolder to null.

public FolderId CopyToFolder { get; set; }

Property Value

FolderId

Delete

Gets or sets a value indicating whether incoming messages should be automatically moved to the Deleted Items folder.

public bool Delete { get; set; }

Property Value

bool

ForwardAsAttachmentToRecipients

Gets the e-mail addresses to which incoming messages should be forwarded as attachments. To disable forwarding incoming messages as attachments, empty the ForwardAsAttachmentToRecipients list.

public EmailAddressCollection ForwardAsAttachmentToRecipients { get; }

Property Value

EmailAddressCollection

ForwardToRecipients

Gets the e-mail addresses to which incoming messages should be forwarded. To disable forwarding incoming messages, empty the ForwardToRecipients list.

public EmailAddressCollection ForwardToRecipients { get; }

Property Value

EmailAddressCollection

MarkAsRead

Gets or sets a value indicating whether incoming messages should be marked as read.

public bool MarkAsRead { get; set; }

Property Value

bool

MarkImportance

Gets or sets the importance that should be stamped on incoming messages. To disable the stamping of incoming messages with an importance, set MarkImportance to null.

public Importance? MarkImportance { get; set; }

Property Value

Importance?

MoveToFolder

Gets or sets the Id of the folder to which incoming messages should be moved. To disable the moving of incoming messages to a folder, set CopyToFolder to null.

public FolderId MoveToFolder { get; set; }

Property Value

FolderId

PermanentDelete

Gets or sets a value indicating whether incoming messages should be permanently deleted. When a message is permanently deleted, it is never saved into the recipient's mailbox. To delete a message after it has been saved into the recipient's mailbox, use the Delete action.

public bool PermanentDelete { get; set; }

Property Value

bool

RedirectToRecipients

Gets the e-mail addresses to which incoming messages should be redirecteded. To disable redirection of incoming messages, empty the RedirectToRecipients list. Unlike forwarded mail, redirected mail maintains the original sender and recipients.

public EmailAddressCollection RedirectToRecipients { get; }

Property Value

EmailAddressCollection

SendSMSAlertToRecipients

Gets the phone numbers to which an SMS alert should be sent. To disable sending SMS alerts for incoming messages, empty the SendSMSAlertToRecipients list.

public Collection<MobilePhone> SendSMSAlertToRecipients { get; }

Property Value

Collection<MobilePhone>

ServerReplyWithMessage

Gets or sets the Id of the template message that should be sent as a reply to incoming messages. To disable automatic replies, set ServerReplyWithMessage to null.

public ItemId ServerReplyWithMessage { get; set; }

Property Value

ItemId

StopProcessingRules

Gets or sets a value indicating whether subsequent rules should be evaluated.

public bool StopProcessingRules { get; set; }

Property Value

bool