Partager via


_RuleConditions.Account Property

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

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

Syntax

'Declaration
<DispIdAttribute()> _
ReadOnly Property Account As AccountRuleCondition
    Get
'Usage
Dim instance As _RuleConditions
Dim value As AccountRuleCondition

value = instance.Account
[DispIdAttribute()]
AccountRuleCondition Account { get; }

Property Value

Type: Microsoft.Office.Interop.Outlook.AccountRuleCondition

Remarks

Use the returned AccountRuleCondition object when enumerating the rule conditions or exception conditions of an existing rule, or when creating a new rule that specifies the condition or exception condition that a message is sent or received through the specified account.

This property of the RuleActions collection always returns an AccountRuleCondition object regardless of whether the rule associated with this RuleConditions collection has defined such a rule condition. If the rule has defined and enabled such a rule condition, then _AccountRuleCondition.Enabled will be True.

See Also

Reference

_RuleConditions Interface

_RuleConditions Members

Microsoft.Office.Interop.Outlook Namespace