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

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,
	string mailboxSmtpAddress
)

Parameters

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

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

removeOutlookRuleBlob
Type: System.Boolean

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

mailboxSmtpAddress
Type: System.String

The SMTP address of the user whose Inbox rules are to be updated.

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.

Show: