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

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public Task<bool> DeserializeAsync(
	XmlReader xmlReader
)

Parameters

xmlReader
Type: System.XmlXmlReader
An XmlReader 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 XmlReader instance.
See Also