AttachmentSaveToFolderAsync Method
async/await version of SaveToFolder(String, Boolean).

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public Task<bool> SaveToFolderAsync(
	string folderName,
	bool overwrite
)

Parameters

folderName
Type: SystemString
The absolute or relative path to the folder where the attachment file should be saved.
overwrite
Type: SystemBoolean
Specifies if the file must be overwritten if it already exists.

Return Value

Type: TaskBoolean
A task that represents the asynchronous operation. The value of TResult parameter is true if the attachment was successfully saved to disk; otherwise, false.
Exceptions
ExceptionCondition
MailBeeIOExceptionAn error occurred and ThrowExceptions is true.
See Also