IAsyncImapClient.BackupAsync

BackupAsync(ImapFolderInfoCollection, Stream, BackupSettings, IConnection, CancellationToken)

Backups the content of the specified folders

public Task BackupAsync(ImapFolderInfoCollection folders, Stream stream, BackupSettings options, 
    IConnection connection = null, CancellationToken token = default)
ParameterTypeDescription
connectionImapFolderInfoCollectionConnection to a server
foldersStreamA folders to backup
streamBackupSettingsA stream to write into
optionsIConnectionA backup options
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


BackupAsync(ImapFolderInfoCollection, string, BackupSettings, IConnection, CancellationToken)

Backups the content of the specified folders

public Task BackupAsync(ImapFolderInfoCollection folders, string fileName, BackupSettings options, 
    IConnection connection = null, CancellationToken token = default)
ParameterTypeDescription
connectionImapFolderInfoCollectionConnection to a server
foldersStringA folders to backup
fileNameBackupSettingsA path to the presonal storage file
optionsIConnectionA backup options
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also