InboxRule.CreateRuleMoveContaining
InboxRule.CreateRuleMoveContaining method
Creates inbox rule that moves messages containing the specified strings in either the body or the subject into the specified folder
public static InboxRule CreateRuleMoveContaining(string[] filter, string destinationFolderId)
Parameter | Type | Description |
---|---|---|
filter | String[] | A strings to search |
destinationFolderId | String | An id of folder in which messages will be moved |
Return Value
A created InboxRule
Exceptions
exception | condition |
---|---|
AsposeArgumentException | filter is null or empty |
AsposeArgumentException | destinationFolderId is null or empty |
See Also
- class InboxRule
- namespace Aspose.Email.Clients.Exchange
- assembly Aspose.Email