Class RuleConditions (Outlook VBA)

Contains a set of RuleCondition objects or objects derived from RuleCondition, representing the conditions or exception conditions that must be satisfied in order for the Rule to execute.

Class Rule gives access to class RuleConditions.


Dim rcs as RuleConditions
Set rcs = Session.DefaultStore.GetRules(1).Exceptions

Methods

Item - Obtains a RuleCondition object specified by Index which is a numerical index into the RuleConditions collection.

Properties

Account returns a AccountRuleCondition object with an AccountRuleCondition.ConditionType of olConditionAccount.

AnyCategory returns a RuleCondition object with a RuleCondition.ConditionType of olConditionAnyCategory.

Body returns a TextRuleCondition object with a TextRuleCondition.ConditionType of olConditionBody.

BodyOrSubject returns a TextRuleCondition object with a TextRuleCondition.ConditionType of olConditionBodyOrSubject.

Category returns a CategoryRuleCondition object with a CategoryRuleCondition.ConditionType of olConditionCategory.

CC returns a RuleCondition object with a RuleCondition.ConditionType of olConditionCc.

Class returns an OlObjectClass constant indicating the object's class.

Count returns a Long indicating the count of objects in the specified collection.

FormName returns a FormNameRuleCondition object with a FormNameRuleCondition.ConditionType of olConditionFormName.

From returns a ToOrFromRuleCondition object with a ToOrFromRuleCondition.ConditionType of olConditionFrom.

FromAnyRSSFeed returns a RuleCondition object with a RuleCondition.ConditionType of olConditionFromAnyRssFeed.

FromRssFeed returns a FromRssFeedRuleCondition object with a FromRssFeedRuleCondition.ConditionType of olConditionFromRssFeed.

HasAttachment returns a RuleCondition object with a RuleCondition.ConditionType of olConditionHasAttachment.

Importance returns an ImportanceRuleCondition object with an ImportanceRuleCondition.ConditionType of olConditionImportance.

MeetingInviteOrUpdate returns a RuleCondition object with a RuleCondition.ConditionType of olConditionMeetingInviteOrUpdate.

MessageHeader returns a TextRuleCondition object with a TextRuleCondition.ConditionType of olConditionMessageHeader.

NotTo returns a RuleCondition object with a RuleCondition.ConditionType of olConditionNotTo.

OnLocalMachine returns a RuleCondition object with a RuleCondition.ConditionType of olConditionLocalMachineOnly.

OnlyToMe returns a RuleCondition object with a RuleCondition.ConditionType of olConditionOnlyToMe.

OnOtherMachine returns a RuleCondition object with a RuleCondition.ConditionType of olConditionOtherMachine.

RecipientAddress returns an AddressRuleCondition object with an AddressRuleCondition.ConditionType of olConditionRecipientAddress.

SenderAddress returns an AddressRuleCondition object with an AddressRuleCondition.ConditionType of olConditionSenderAddress.

SenderInAddressList returns a SenderInAddressListRuleCondition object with a SenderInAddressListRuleCondition.ConditionType of olConditionAccount.

Sensitivity

SentTo returns a ToOrFromRuleCondition object with a ToOrFromRuleCondition.ConditionType of olConditionSentTo.

Session returns the NameSpace object for the current session.

Subject returns a TextRuleCondition object with a TextRuleCondition.ConditionType of olConditionSubject.

ToMe returns a RuleCondition object with a RuleCondition.ConditionType of olConditionTo.

ToOrCc returns a RuleCondition object with a RuleCondition.ConditionType of olConditionToOrCc.