IAsyncEwsClient.BackupAsync
Contents
[
Hide
]BackupAsync(ExchangeFolderInfoCollection, string, BackupOptions, CancellationToken)
Backups the content of the specified folders.
public Task BackupAsync(ExchangeFolderInfoCollection folders, string fileName,
BackupOptions options, CancellationToken cancellationToken = default)
Parameter | Type | Description |
---|---|---|
folders | ExchangeFolderInfoCollection | The collection of folders to backup. |
fileName | String | The path to the personal storage file. |
options | BackupOptions | The backup options. |
cancellationToken | CancellationToken | The cancellation token. |
Exceptions
exception | condition |
---|---|
AsposeArgumentException | A fileName is null or empty . |
AsposeArgumentNullException | folders is null . |
See Also
- class ExchangeFolderInfoCollection
- enum BackupOptions
- interface IAsyncEwsClient
- namespace Aspose.Email.Clients.Exchange.WebService
- assembly Aspose.Email
BackupAsync(ExchangeFolderInfoCollection, Stream, BackupOptions, CancellationToken)
Backups the content of the specified folders.
public Task BackupAsync(ExchangeFolderInfoCollection folders, Stream stream, BackupOptions options,
CancellationToken cancellationToken = default)
Parameter | Type | Description |
---|---|---|
folders | ExchangeFolderInfoCollection | The collection of folders to backup. |
stream | Stream | The stream to write into. |
options | BackupOptions | The backup options. |
cancellationToken | CancellationToken | The cancellation token. |
Exceptions
exception | condition |
---|---|
NotSupportedException | The given stream does not support writing. |
AsposeArgumentNullException | folders or stream is null . |
See Also
- class ExchangeFolderInfoCollection
- enum BackupOptions
- interface IAsyncEwsClient
- namespace Aspose.Email.Clients.Exchange.WebService
- assembly Aspose.Email