Class InboxRule

InboxRule class

Represents a inbox rule

public sealed class InboxRule

Constructors

NameDescription
InboxRule()Initializes a new instance of the InboxRule class

Properties

NameDescription
Actions { get; set; }Gets or sets the actions to be taken on a message when the conditions are fulfilled.
Conditions { get; set; }Gets or sets the conditions that, when fulfilled, will trigger the rule actions for that rule.
DisplayName { get; set; }Gets or sets the display name of a rule.
Exceptions { get; set; }Gets or sets the exceptions that represent all the available rule exception conditions for the inbox rule.
IsEnabled { get; set; }Gets or sets a value indicating whether the rule is enabled.
IsInError { get; }Gets a value indicating whether the rule is in an error condition.
IsNotSupported { get; }Gets a value indicating whether the rule cannot be modified with the managed code APIs.
IsReadOnly { get; set; }Gets or sets a value indicating whether the rule is read-only.
Priority { get; set; }Gets or sets a value that indicates the order in which a rule is to be run.
RuleId { get; set; }Gets or sets the rule identifier.

Methods

NameDescription
static CreateRuleDeleteContaining(string[])Creates inbox rule that deletes messages containing the specified strings in either the body or the subject
static CreateRuleDeleteFrom(MailAddress)Creates inbox rule that deletes messages from specified senders
static CreateRuleMoveContaining(string[], string)Creates inbox rule that moves messages containing the specified strings in either the body or the subject into the specified folder
static CreateRuleMoveFrom(MailAddress, string)Creates inbox rule that moves messages from specified senders into the specified folder

See Also