RuleConditions Interface

Definition

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.

public interface class RuleConditions : Microsoft::Office::Interop::Outlook::_RuleConditions
[System.Runtime.InteropServices.Guid("000630D8-0000-0000-C000-000000000046")]
public interface RuleConditions : Microsoft.Office.Interop.Outlook._RuleConditions
Public Interface RuleConditions
Implements _RuleConditions
Derived
Attributes
Implements

Remarks

This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _RuleConditions.

The RuleConditions object include both rule conditions and rule exceptions. The type of rule condition that can be added to a RuleConditions collection depends upon the RuleType.

The RuleConditions object is a fixed collection. A RuleCondition object or a type that is derived from the RuleCondition object cannot be added or removed from the RuleConditions object.

The Rules object model provides partial parity with the Rules and Alerts Wizard in the Outlook user interface. It supports the most commonly used rule actions and conditions. Although it does not support creating rules with any rule action or rule condition that the Wizard supports, you can still enumerate and enable these rule actions and conditions in existing rules.

For more information on rule conditions, see Specifying Rule ConditionsHow to: Create a Rule to Move Specific E-mails to a Folder

Properties

Account

Returns a AccountRuleCondition object with an ConditionType of olConditionAccount. Read-only.

(Inherited from _RuleConditions)
AnyCategory

Returns a RuleCondition object with a ConditionType of olConditionAnyCategory. Read-only.

(Inherited from _RuleConditions)
Application

Returns an Application object that represents the parent Outlook application for the object. Read-only.

(Inherited from _RuleConditions)
Body

Returns a TextRuleCondition object with a ConditionType of olConditionBody. Read-only.

(Inherited from _RuleConditions)
BodyOrSubject

Returns a TextRuleCondition object with a ConditionType of olConditionBodyOrSubject. Read-only.

(Inherited from _RuleConditions)
Category

Returns a CategoryRuleCondition object with a ConditionType of olConditionCategory. Read-only.

(Inherited from _RuleConditions)
CC

Returns a RuleCondition object with a ConditionType of olConditionCc. Read-only.

(Inherited from _RuleConditions)
Class

Returns an OlObjectClass constant indicating the object's class. Read-only.

(Inherited from _RuleConditions)
Count

Returns an Integer (int in C#) value indicating the count of objects in the specified collection. Read-only.

(Inherited from _RuleConditions)
FormName

Returns a FormNameRuleCondition object with a ConditionType of olConditionFormName. Read-only.

(Inherited from _RuleConditions)
From

Returns a ToOrFromRuleCondition object with a ConditionType of olConditionFrom. Read-only.

(Inherited from _RuleConditions)
FromAnyRSSFeed

Returns a RuleCondition object with a ConditionType of olConditionFromAnyRssFeed. Read-only.

(Inherited from _RuleConditions)
FromRssFeed

Returns a FromRssFeedRuleCondition object with a ConditionType of olConditionFromRssFeed. Read-only.

(Inherited from _RuleConditions)
HasAttachment

Returns a RuleCondition object with a ConditionType of olConditionHasAttachment. Read-only.

(Inherited from _RuleConditions)
Importance

Returns an ImportanceRuleCondition object with an ConditionType of olConditionImportance. Read-only.

(Inherited from _RuleConditions)
Item[Int32]

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

(Inherited from _RuleConditions)
MeetingInviteOrUpdate

Returns a RuleCondition object with a ConditionType of olConditionMeetingInviteOrUpdate. Read-only.

(Inherited from _RuleConditions)
MessageHeader

Returns a TextRuleCondition object with a ConditionType of olConditionMessageHeader. Read-only.

(Inherited from _RuleConditions)
NotTo

Returns a RuleCondition object with a ConditionType of olConditionNotTo. Read-only.

(Inherited from _RuleConditions)
OnLocalMachine

Returns a RuleCondition object with a ConditionType of olConditionLocalMachineOnly. Read-only.

(Inherited from _RuleConditions)
OnlyToMe

Returns a RuleCondition object with a ConditionType of olConditionOnlyToMe. Read-only.

(Inherited from _RuleConditions)
OnOtherMachine

Returns a RuleCondition object with a ConditionType of olConditionOtherMachine. Read-only.

(Inherited from _RuleConditions)
Parent

Returns the parent Object of the specified object. Read-only.

(Inherited from _RuleConditions)
RecipientAddress

Returns an AddressRuleCondition object with an ConditionType of olConditionRecipientAddress. Read-only.

(Inherited from _RuleConditions)
SenderAddress

Returns an AddressRuleCondition object with an ConditionType of olConditionSenderAddress. Read-only.

(Inherited from _RuleConditions)
SenderInAddressList

Returns a SenderInAddressListRuleCondition object with a ConditionType of olConditionAccount. Read-only.

(Inherited from _RuleConditions)
SentTo

Returns a ToOrFromRuleCondition object with a ConditionType of olConditionSentTo. Read-only.

(Inherited from _RuleConditions)
Session

Returns the NameSpace object for the current session. Read-only.

(Inherited from _RuleConditions)
Subject

Returns a TextRuleCondition object with a ConditionType of olConditionSubject. Read-only.

(Inherited from _RuleConditions)
ToMe

Returns a RuleCondition object with a ConditionType of olConditionTo. Read-only.

(Inherited from _RuleConditions)
ToOrCc

Returns a RuleCondition object with a ConditionType of olConditionToOrCc. Read-only.

(Inherited from _RuleConditions)

Applies to