AttachmentSaveAsync Method
async/await version of Save(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> SaveAsync(
	string filename,
	bool overwrite
)

Parameters

filename
Type: SystemString
The absolute or relative path under which to save the attachment.
overwrite
Type: SystemBoolean
Denotes 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