MailMessageDeserializeAsync Method (XmlTextReader)
async/await version of Deserialize(XmlTextReader).

Namespace: MailBee.Mime
Assembly: MailBee.NET.45 (in MailBee.NET.45.dll) Version: 10.0.45.502
Syntax
public Task<bool> DeserializeAsync(
	XmlTextReader xmlReader
)

Parameters

xmlReader
Type: System.XmlXmlTextReader
An XmlTextReader object.

Return Value

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