BackupAsync

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

备份指定文件夹的内容

public Task BackupAsync(ImapFolderInfoCollection folders, Stream stream, BackupSettings options, 
    IConnection connection = null, CancellationToken token = default)
范围类型描述
connectionImapFolderInfoCollection连接到服务器
foldersStream要备份的文件夹
streamBackupSettings要写入的流
optionsIConnection备份选项
tokenCancellationToken传播应取消操作的通知。

返回值

任务对象,具有此操作的委托

也可以看看


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

备份指定文件夹的内容

public Task BackupAsync(ImapFolderInfoCollection folders, string fileName, BackupSettings options, 
    IConnection connection = null, CancellationToken token = default)
范围类型描述
connectionImapFolderInfoCollection连接到服务器
foldersString要备份的文件夹
fileNameBackupSettings个人存储文件的路径
optionsIConnection备份选项
tokenCancellationToken传播应取消操作的通知。

返回值

任务对象,具有此操作的委托

也可以看看