InboxRule.CreateRuleMoveFrom

InboxRule.CreateRuleMoveFrom method

Creates inbox rule that moves messages from specified senders into the specified folder

public static InboxRule CreateRuleMoveFrom(MailAddress from, string destinationFolderId)
ParameterTypeDescription
fromMailAddressA EmailAddress of sender
destinationFolderIdStringAn id of folder in which messages will be moved

Return Value

A created InboxRule

Exceptions

exceptioncondition
AsposeArgumentNullExceptionfrom is null
AsposeArgumentExceptiondestinationFolderId is null or empty

See Also