Table of Contents

Class RulePredicates

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

Represents the set of conditions and exceptions available for a rule.

public sealed class RulePredicates : ComplexProperty
Inheritance
RulePredicates
Inherited Members

Properties

Categories

Gets the categories that an incoming message should be stamped with for the condition or exception to apply. To disable this predicate, empty the list.

public StringList Categories { get; }

Property Value

StringList

ContainsBodyStrings

Gets the strings that should appear in the body of incoming messages for the condition or exception to apply. To disable this predicate, empty the list.

public StringList ContainsBodyStrings { get; }

Property Value

StringList

ContainsHeaderStrings

Gets the strings that should appear in the headers of incoming messages for the condition or exception to apply. To disable this predicate, empty the list.

public StringList ContainsHeaderStrings { get; }

Property Value

StringList

ContainsRecipientStrings

Gets the strings that should appear in either the To or Cc fields of incoming messages for the condition or exception to apply. To disable this predicate, empty the list.

public StringList ContainsRecipientStrings { get; }

Property Value

StringList

ContainsSenderStrings

Gets the strings that should appear in the From field of incoming messages for the condition or exception to apply. To disable this predicate, empty the list.

public StringList ContainsSenderStrings { get; }

Property Value

StringList

ContainsSubjectOrBodyStrings

Gets the strings that should appear in either the body or the subject of incoming messages for the condition or exception to apply. To disable this predicate, empty the list.

public StringList ContainsSubjectOrBodyStrings { get; }

Property Value

StringList

ContainsSubjectStrings

Gets the strings that should appear in the subject of incoming messages for the condition or exception to apply. To disable this predicate, empty the list.

public StringList ContainsSubjectStrings { get; }

Property Value

StringList

FlaggedForAction

Gets or sets the flag for action value that should appear on incoming messages for the condition or execption to apply. To disable this predicate, set it to null.

public FlaggedForAction? FlaggedForAction { get; set; }

Property Value

FlaggedForAction?

FromAddresses

Gets the e-mail addresses of the senders of incoming messages for the condition or exception to apply. To disable this predicate, empty the list.

public EmailAddressCollection FromAddresses { get; }

Property Value

EmailAddressCollection

FromConnectedAccounts

Gets the e-mail account names from which incoming messages must have been aggregated for the condition or exception to apply. To disable this predicate, empty the list.

public StringList FromConnectedAccounts { get; }

Property Value

StringList

HasAttachments

Gets or sets a value indicating whether incoming messages must have attachments for the condition or exception to apply.

public bool HasAttachments { get; set; }

Property Value

bool

Importance

Gets or sets the importance that should be stamped on incoming messages for the condition or exception to apply. To disable this predicate, set it to null.

public Importance? Importance { get; set; }

Property Value

Importance?

IsApprovalRequest

Gets or sets a value indicating whether incoming messages must be approval requests for the condition or exception to apply.

public bool IsApprovalRequest { get; set; }

Property Value

bool

IsAutomaticForward

Gets or sets a value indicating whether incoming messages must be automatic forwards for the condition or exception to apply.

public bool IsAutomaticForward { get; set; }

Property Value

bool

IsAutomaticReply

Gets or sets a value indicating whether incoming messages must be automatic replies for the condition or exception to apply.

public bool IsAutomaticReply { get; set; }

Property Value

bool

IsEncrypted

Gets or sets a value indicating whether incoming messages must be S/MIME encrypted for the condition or exception to apply.

public bool IsEncrypted { get; set; }

Property Value

bool

IsMeetingRequest

Gets or sets a value indicating whether incoming messages must be meeting requests for the condition or exception to apply.

public bool IsMeetingRequest { get; set; }

Property Value

bool

IsMeetingResponse

Gets or sets a value indicating whether incoming messages must be meeting responses for the condition or exception to apply.

public bool IsMeetingResponse { get; set; }

Property Value

bool

IsNonDeliveryReport

Gets or sets a value indicating whether incoming messages must be non-delivery reports (NDR) for the condition or exception to apply.

public bool IsNonDeliveryReport { get; set; }

Property Value

bool

IsPermissionControlled

Gets or sets a value indicating whether incoming messages must be permission controlled (RMS protected) for the condition or exception to apply.

public bool IsPermissionControlled { get; set; }

Property Value

bool

IsReadReceipt

Gets or sets a value indicating whether incoming messages must be read receipts for the condition or exception to apply.

public bool IsReadReceipt { get; set; }

Property Value

bool

IsSigned

Gets or sets a value indicating whether incoming messages must be S/MIME signed for the condition or exception to apply.

public bool IsSigned { get; set; }

Property Value

bool

IsVoicemail

Gets or sets a value indicating whether incoming messages must be voice mails for the condition or exception to apply.

public bool IsVoicemail { get; set; }

Property Value

bool

ItemClasses

Gets the item classes that must be stamped on incoming messages for the condition or exception to apply. To disable this predicate, empty the list.

public StringList ItemClasses { get; }

Property Value

StringList

MessageClassifications

Gets the message classifications that must be stamped on incoming messages for the condition or exception to apply. To disable this predicate, empty the list.

public StringList MessageClassifications { get; }

Property Value

StringList

NotSentToMe

Gets or sets a value indicating whether the owner of the mailbox must NOT be a To recipient of the incoming messages for the condition or exception to apply.

public bool NotSentToMe { get; set; }

Property Value

bool

Sensitivity

Gets or sets the sensitivity that must be stamped on incoming messages for the condition or exception to apply. To disable this predicate, set it to null.

public Sensitivity? Sensitivity { get; set; }

Property Value

Sensitivity?

SentCcMe

Gets or sets a value indicating whether the owner of the mailbox must be a Cc recipient of incoming messages for the condition or exception to apply.

public bool SentCcMe { get; set; }

Property Value

bool

SentOnlyToMe

Gets or sets a value indicating whether the owner of the mailbox must be the only To recipient of incoming messages for the condition or exception to apply.

public bool SentOnlyToMe { get; set; }

Property Value

bool

SentToAddresses

Gets the e-mail addresses incoming messages must have been sent to for the condition or exception to apply. To disable this predicate, empty the list.

public EmailAddressCollection SentToAddresses { get; }

Property Value

EmailAddressCollection

SentToMe

Gets or sets a value indicating whether the owner of the mailbox must be a To recipient of incoming messages for the condition or exception to apply.

public bool SentToMe { get; set; }

Property Value

bool

SentToOrCcMe

Gets or sets a value indicating whether the owner of the mailbox must be either a To or Cc recipient of incoming messages for the condition or exception to apply.

public bool SentToOrCcMe { get; set; }

Property Value

bool

WithinDateRange

Gets the date range within which incoming messages must have been received for the condition or exception to apply. To disable this predicate, set both its Start and End properties to null.

public RulePredicateDateRange WithinDateRange { get; }

Property Value

RulePredicateDateRange

WithinSizeRange

Gets the minimum and maximum sizes incoming messages must have for the condition or exception to apply. To disable this predicate, set both its MinimumSize and MaximumSize properties to null.

public RulePredicateSizeRange WithinSizeRange { get; }

Property Value

RulePredicateSizeRange