Load Method (Stream, Encoding, Boolean)

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Loads a mixed code document from a stream.

Namespace: HtmlAgilityPack
Assembly: HtmlAgilityPack (in HtmlAgilityPack.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

C#
public void Load(
	Stream stream,
	Encoding encoding,
	bool detectEncodingFromByteOrderMarks
)
Visual Basic
Public Sub Load ( _
	stream As Stream, _
	encoding As Encoding, _
	detectEncodingFromByteOrderMarks As Boolean _
)
Visual C++
public:
void Load(
	Stream^ stream, 
	Encoding^ encoding, 
	bool detectEncodingFromByteOrderMarks
)

Parameters

stream
Type: System.IO..::..Stream
The input stream.
encoding
Type: System.Text..::..Encoding
The character encoding to use.
detectEncodingFromByteOrderMarks
Type: System..::..Boolean
Indicates whether to look for byte order marks at the beginning of the file.

See Also