Share via


_AddressRuleCondition.ConditionType Property

Returns a constant from the OlRuleConditionType enumeration that indicates the type of rule condition. Read-only.

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

Syntax

'Declaration
<DispIdAttribute()> _
ReadOnly Property ConditionType As OlRuleConditionType
    Get
'Usage
Dim instance As _AddressRuleCondition
Dim value As OlRuleConditionType

value = instance.ConditionType
[DispIdAttribute()]
OlRuleConditionType ConditionType { get; }

Property Value

Type: Microsoft.Office.Interop.Outlook.OlRuleConditionType

Remarks

The AddressRuleCondition object is used by rules of types olRuleSend and olRuleReceive. If the rule is created as an olRuleSend rule, then the type of the associated AddressRuleCondition object will be olConditionSenderAddress. If the rule is created as an olRuleReceive rule, then the type of the associated AddressRuleCondition object will be olConditionRecipientAddress.

This however does not mean that the rule always has a defined rule condition for sender or recipient addresses. Regardless of whether there exists such a defined or enabled rule condition, the AddressRuleCondition.ConditionType property is always initialized once the associated rule is created. For more information on rule conditions, see Specifying Rule Conditions.

See Also

Reference

_AddressRuleCondition Interface

_AddressRuleCondition Members

Microsoft.Office.Interop.Outlook Namespace