Share via


_Rule.IsLocalRule Property

Returns a Boolean (bool in C#) that indicates if the rule executes as a client-side rule. Read-only.

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

Syntax

'Declaration
<DispIdAttribute()> _
ReadOnly Property IsLocalRule As Boolean
    Get
'Usage
Dim instance As _Rule
Dim value As Boolean

value = instance.IsLocalRule
[DispIdAttribute()]
bool IsLocalRule { get; }

Property Value

Type: System.Boolean

Remarks

A client-side rule executes only when Outlook is running. If IsLocalRule is False, then the rule executes as a server-side rule.

If you have a Microsoft Exchange Server e-mail account, the server can apply server-side rules to your messages even if you don't have Outlook running. The rules must be set to be applied to messages when they are delivered to your Inbox on the server, and the rules must be able to run to completion on the server. For example, a rule cannot run to completion on the server if the action specifies that a message be printed. If a rule cannot be applied on the server, it is applied when you start Outlook.

If the rules collection on a store contains both server and client-side rules, the server-side rules are applied first, followed by the client-side rules.

See Also

Reference

_Rule Interface

_Rule Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Execute a Rule on a Local Computer