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

Namespace: MailBee.Mime
Assembly: MailBee.NET.45 (in MailBee.NET.45.dll) Version: 10.0.45.502
Syntax
public Task<bool> SerializeAsync(
	XmlTextWriter xmlWriter
)

Parameters

xmlWriter
Type: System.XmlXmlTextWriter
An XmlTextWriter 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 XmlTextReader instance.
See Also