Table of Contents

Class Rule

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

Represents a rule that automatically handles incoming messages. A rule consists of a set of conditions and exceptions that determine whether or not a set of actions should be executed on incoming messages.

public sealed class Rule : ComplexProperty
Inheritance
Rule
Inherited Members

Constructors

Rule()

Initializes a new instance of the Rule class.

public Rule()

Properties

Actions

Gets the actions that should be executed against incoming messages if the conditions evaluate as true.

public RuleActions Actions { get; }

Property Value

RuleActions

Conditions

Gets the conditions that determine whether or not this rule should be executed against incoming messages.

public RulePredicates Conditions { get; }

Property Value

RulePredicates

DisplayName

Gets or sets the name of this rule as it should be displayed to the user.

public string DisplayName { get; set; }

Property Value

string

Exceptions

Gets the exceptions that determine if this rule should be skipped even if its conditions evaluate to true.

public RulePredicates Exceptions { get; }

Property Value

RulePredicates

Id

Gets or sets the Id of this rule.

public string Id { get; set; }

Property Value

string

IsEnabled

Gets or sets a value indicating whether this rule is enabled.

public bool IsEnabled { get; set; }

Property Value

bool

IsInError

Gets or sets a value indicating whether this rule has errors. A rule that is in error cannot be processed unless it is updated and the error is corrected.

public bool IsInError { get; set; }

Property Value

bool

IsNotSupported

Gets a value indicating whether this rule can be modified via EWS. If IsNotSupported is true, the rule cannot be modified via EWS.

public bool IsNotSupported { get; }

Property Value

bool

Priority

Gets or sets the priority of this rule, which determines its execution order.

public int Priority { get; set; }

Property Value

int