Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
UpdateInboxRules method (IEnumerable(RuleOperation), Boolean)

ExchangeService.UpdateInboxRules method (IEnumerable<RuleOperation>, Boolean)

Updates a specified user's Inbox rules by applying the specified operations.

Namespace:  Microsoft.Exchange.WebServices.Data
Assembly:  Microsoft.Exchange.WebServices (in Microsoft.Exchange.WebServices.dll)

public void UpdateInboxRules(
	IEnumerable<RuleOperation> operations,
	bool removeOutlookRuleBlob


Type: System.Collections.Generic.IEnumerable<RuleOperation>

The operations that are to be applied to the specified user's Inbox rules.

Type: System.Boolean

true to remove the Outlook rule blob ; otherwise, false.

Calling this method results in a call to Exchange Web Service (EWS).

You can use the OutlookRuleBlobExists property to determine whether to prompt the user before calling this method.

When you call the UpdateInboxRules method, EWS deletes client-side send rules. Client-side send rules are stored on the client in the rule Folder Associated Information (FAI) Message and nowhere else. EWS deletes this rule FAI message by default, based on the expectation that Outlook will recreate it. However, Outlook can't recreate rules that don't also exist as an extended rule, and client-side send rules don't exist as extended rules. As a result, these rules are lost. We suggest you consider this when designing your solution.

© 2015 Microsoft