MailBee.NET Objects 7.1

Processor.SaveToStream Method 

Saves HTML markup into a stream.

public bool SaveToStream(
   Stream outputStream,
   Encoding enc
);

Parameters

outputStream
The stream where the HTML markup should be saved to.
enc
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

true if the entire data was successfully encoded and saved into the stream; otherwise, false.

Exceptions

Exception Type Condition
MailBeeInvalidArgumentException outputStream is a null reference (Nothing in Visual Basic).
MailBeeStreamException The given stream does not support writing or stream I/O error occurred, and ThrowExceptions is true.

See Also

Processor Class | MailBee.Html Namespace