ProcessorSaveToStreamAsync Method
async/await version of SaveToStream(Stream, Encoding).

Namespace: MailBee.Html
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
public Task<bool> SaveToStreamAsync(
	Stream outputStream,
	Encoding enc


Type: System.IOStream
The stream where the HTML markup should be saved to.
Type: System.TextEncoding
The encoding to use for encoding the HTML data from string into bytes. 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 encoded and saved into the stream; otherwise, false.
MailBeeInvalidArgumentExceptionoutputStream is a null reference (Nothing in Visual Basic).
MailBeeStreamExceptionThe given stream does not support writing or stream I/O error occurred, and ThrowExceptions is true.
See Also