IAsyncEwsClient.BackupAsync

BackupAsync(ExchangeFolderInfoCollection, string, BackupOptions, CancellationToken)

Backups the content of the specified folders.

public Task BackupAsync(ExchangeFolderInfoCollection folders, string fileName, 
    BackupOptions options, CancellationToken cancellationToken = default)
ParameterTypeDescription
foldersExchangeFolderInfoCollectionThe collection of folders to backup.
fileNameStringThe path to the personal storage file.
optionsBackupOptionsThe backup options.
cancellationTokenCancellationTokenThe cancellation token.

Exceptions

exceptioncondition
AsposeArgumentExceptionA fileName is null or empty.
AsposeArgumentNullExceptionfolders is null.

See Also


BackupAsync(ExchangeFolderInfoCollection, Stream, BackupOptions, CancellationToken)

Backups the content of the specified folders.

public Task BackupAsync(ExchangeFolderInfoCollection folders, Stream stream, BackupOptions options, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
foldersExchangeFolderInfoCollectionThe collection of folders to backup.
streamStreamThe stream to write into.
optionsBackupOptionsThe backup options.
cancellationTokenCancellationTokenThe cancellation token.

Exceptions

exceptioncondition
NotSupportedExceptionThe given stream does not support writing.
AsposeArgumentNullExceptionfolders or stream is null.

See Also