ProcessorLoadFromStreamAsync Method
async/await version of LoadFromStream(Stream, Encoding).

Namespace: MailBee.Html
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public Task<bool> LoadFromStreamAsync(
	Stream inputStream,
	Encoding enc
)

Parameters

inputStream
Type: System.IOStream
The stream representing the content of the HTML markup.
enc
Type: System.TextEncoding
The encoding to use for decoding stream data from bytes to string. If a null reference (Nothing in Visual Basic), UTF-8 encoding will be used.

Return Value

Type: TaskBoolean
A task that represents the asynchronous operation. The value of TResult parameter is true if the entire data was successfully read from the stream; otherwise, false.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptioninputStream is a null reference (Nothing in Visual Basic).
MailBeeStreamExceptionA stream error occurred and ThrowExceptions is true.
See Also