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)
ParameterTypeDescription
filterString[]A strings to search
destinationFolderIdStringAn id of folder in which messages will be moved

Return Value

A created InboxRule

Exceptions

exceptioncondition
AsposeArgumentExceptionfilter is null or empty
AsposeArgumentExceptiondestinationFolderId is null or empty

See Also