MailBee.NET Objects 7.2

Processor.LoadFromStream Method 

Loads HTML markup from a stream.

public bool LoadFromStream(
   Stream inputStream,
   Encoding enc
);

Parameters

inputStream
The stream representing the content of the HTML markup.
enc
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

true if the entire data was successfully read from the stream; otherwise, false.

Exceptions

Exception Type Condition
MailBeeInvalidArgumentException outputStream is a null reference (Nothing in Visual Basic).
MailBeeStreamException A stream error occurred and ThrowExceptions is true.

See Also

Processor Class | MailBee.Html Namespace