Load Method (String, Encoding, Boolean, Int32)

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Loads an HTML document from a file.

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

Syntax

C#
public void Load(
	string path,
	Encoding encoding,
	bool detectEncodingFromByteOrderMarks,
	int buffersize
)
Visual Basic
Public Sub Load ( _
	path As String, _
	encoding As Encoding, _
	detectEncodingFromByteOrderMarks As Boolean, _
	buffersize As Integer _
)
Visual C++
public:
void Load(
	String^ path, 
	Encoding^ encoding, 
	bool detectEncodingFromByteOrderMarks, 
	int buffersize
)

Parameters

path
Type: System..::..String
The complete file path to be read. May not be null.
encoding
Type: System.Text..::..Encoding
The character encoding to use. May not be null.
detectEncodingFromByteOrderMarks
Type: System..::..Boolean
Indicates whether to look for byte order marks at the beginning of the file.
buffersize
Type: System..::..Int32
The minimum buffer size.

See Also