MailMessageSerializeAsync Method (XmlWriter)
async/await version of Serialize(XmlWriter).

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public Task<bool> SerializeAsync(
	XmlWriter xmlWriter
)

Parameters

xmlWriter
Type: System.XmlXmlWriter
An XmlWriter object.

Return Value

Type: TaskBoolean
A task that represents the asynchronous operation. The value of TResult parameter is true if the message was successfully saved to .XML file; otherwise, false.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionxmlWriter is a null reference (Nothing in Visual Basic).
MailBeeIOExceptionAn I/O error occurred and ThrowExceptions is true.
Remarks
Be sure to enable Async when creating XmlReader instance.
See Also