Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

RuleConditions Interface

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.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

[GuidAttribute("000630D8-0000-0000-C000-000000000046")]
[CoClassAttribute(typeof(RuleConditionsClass))]
public interface RuleConditions : _RuleConditions

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 _Rule.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 Conditions and How to: Create a Rule to Move Specific E-mails to a Folder.

Show:
© 2015 Microsoft