CreateInstance Method (String, Type)

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Creates an instance of the given type from the specified Internet resource.

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

Syntax

C#
public Object CreateInstance(
	string url,
	Type type
)
Visual Basic
Public Function CreateInstance ( _
	url As String, _
	type As Type _
) As Object
Visual C++
public:
Object^ CreateInstance(
	String^ url, 
	Type^ type
)

Parameters

url
Type: System..::..String
The requested URL, such as "http://Myserver/Mypath/Myfile.asp".
type
Type: System..::..Type
The requested type.

Return Value

An newly created instance.

See Also