AttachmentSaveAsync Method |
Namespace: MailBee.MimeAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public Task<bool> SaveAsync(
string filename,
bool overwrite
)
Public Function SaveAsync (
filename As String,
overwrite As Boolean
) As Task(Of Boolean)
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:
TaskBooleanA task that represents the asynchronous operation.
The value of
TResult parameter is
true if the attachment was successfully saved to disk; otherwise,
false.
Exceptions See Also