RuleConditions RuleConditions 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 Account Account

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

(Inherited from _RuleConditions)

AnyCategory AnyCategory AnyCategory

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

(Inherited from _RuleConditions)

Application Application Application

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

(Inherited from _RuleConditions)

Body Body Body

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

(Inherited from _RuleConditions)

BodyOrSubject BodyOrSubject BodyOrSubject

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

(Inherited from _RuleConditions)

Category Category Category

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

(Inherited from _RuleConditions)

CC CC CC

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

(Inherited from _RuleConditions)

Class Class Class

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

(Inherited from _RuleConditions)

Count Count Count

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

(Inherited from _RuleConditions)

FormName FormName FormName

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

(Inherited from _RuleConditions)

From From From

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

(Inherited from _RuleConditions)

FromAnyRSSFeed FromAnyRSSFeed FromAnyRSSFeed

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

(Inherited from _RuleConditions)

FromRssFeed FromRssFeed FromRssFeed

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

(Inherited from _RuleConditions)

HasAttachment HasAttachment HasAttachment

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

(Inherited from _RuleConditions)

Importance Importance Importance

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

(Inherited from _RuleConditions)

Item[Int32] Item[Int32] Item[Int32]

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

(Inherited from _RuleConditions)

MeetingInviteOrUpdate MeetingInviteOrUpdate MeetingInviteOrUpdate

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

(Inherited from _RuleConditions)

MessageHeader MessageHeader MessageHeader

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

(Inherited from _RuleConditions)

NotTo NotTo NotTo

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

(Inherited from _RuleConditions)

OnLocalMachine OnLocalMachine OnLocalMachine

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

(Inherited from _RuleConditions)

OnlyToMe OnlyToMe OnlyToMe

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

(Inherited from _RuleConditions)

OnOtherMachine OnOtherMachine OnOtherMachine

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

(Inherited from _RuleConditions)

Parent Parent Parent

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

(Inherited from _RuleConditions)

RecipientAddress RecipientAddress RecipientAddress

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

(Inherited from _RuleConditions)

SenderAddress SenderAddress SenderAddress

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

(Inherited from _RuleConditions)

SenderInAddressList SenderInAddressList SenderInAddressList

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

(Inherited from _RuleConditions)

SentTo SentTo SentTo

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

(Inherited from _RuleConditions)

Session Session Session

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

(Inherited from _RuleConditions)

Subject Subject Subject

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

(Inherited from _RuleConditions)

ToMe ToMe ToMe

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

(Inherited from _RuleConditions)

ToOrCc ToOrCc ToOrCc

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

(Inherited from _RuleConditions)

Applies to