OlRuleConditionType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the type of rule condition or exception condition of a rule.
public enum class OlRuleConditionType
public enum OlRuleConditionType
Public Enum OlRuleConditionType
- Inheritance
-
OlRuleConditionType
Fields
Name | Value | Description |
---|---|---|
olConditionUnknown | 0 | Unrecognized condition. |
olConditionFrom | 1 | Sender is in the recipient list specified in Recipients. |
olConditionSubject | 2 | Subject contains words specified in TextRuleCondition.Text. |
olConditionAccount | 3 | Account is the account specified in Account. |
olConditionOnlyToMe | 4 | Message is sent only to me. |
olConditionTo | 5 | My name is in the To box. |
olConditionImportance | 6 | Message is marked with the specified level of importance. |
olConditionSensitivity | 7 | Message is marked with the specified level of sensitivity. |
olConditionFlaggedForAction | 8 | Message is flagged for the specified action. |
olConditionCc | 9 | Message has my name in the Cc box. |
olConditionToOrCc | 10 | Message has my name in the To or Cc box. |
olConditionNotTo | 11 | Message does not have my name in the To box. |
olConditionSentTo | 12 | Sent to recipients (To, Cc) are in the recipient list specified in ToOrFromRuleCondition.Recipients. |
olConditionBody | 13 | Body contains words specified in Text. |
olConditionBodyOrSubject | 14 | Body or subject contains words specified by TextRuleCondition.Text. |
olConditionMessageHeader | 15 | Message header contains words specified in TextRuleCondition.Text. |
olConditionRecipientAddress | 16 | Recipient address contains words specified in TextRuleCondition.Text. |
olConditionSenderAddress | 17 | Sender address contains words specified in TextRuleCondition.Text. |
olConditionCategory | 18 | Category is the category specified in Categories. |
olConditionOOF | 19 | Message is an out-of-office message. |
olConditionHasAttachment | 20 | Message has one or more attachments. |
olConditionSizeRange | 21 | Message size is between x and y in units of KB, where x and y are Integer values. |
olConditionDateRange | 22 | Message was received between x and y, where x and y are Date values. |
olConditionFormName | 23 | Message uses the form specified in FormName. |
olConditionProperty | 24 | Document property is exactly, contains, or does not contain specified properties. |
olConditionSenderInAddressBook | 25 | Sender is in the address list specified in AddressRuleCondition.Address. |
olConditionMeetingInviteOrUpdate | 26 | Message is a meeting invitation or update. |
olConditionLocalMachineOnly | 27 | Rule can run only on the local machine. |
olConditionOtherMachine | 28 | Rule can run only on a specific machine that is not the current machine. |
olConditionAnyCategory | 29 | Message is assigned to any category. |
olConditionFromRssFeed | 30 | Message is generated from a specific RSS subscription. |
olConditionFromAnyRssFeed | 31 | Message is generated from any RSS subscription. |
Remarks
The list of rule condition types in this enumeration includes all the rule conditions and exception conditions that the Rules and Alerts Wizard supports. Note that while you can programmatically enumerate all the rule conditions and exception conditions for a rule, you can programmatically create a rule with only the most commonly used conditions. For more information, see Specifying Rule Conditions
For example, the rule condition types olConditionDateRange and olConditionSizeRange are supported only for enumeration and enabling or disabling in an existing rule. You cannot programmatically create a rule with such conditions. You cannot programmatically get or set the values of x and y that represent the range.