CreateInstance Method (String, String, XsltArgumentList, 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 htmlUrl,
	string xsltUrl,
	XsltArgumentList xsltArgs,
	Type type
)
Visual Basic
Public Function CreateInstance ( _
	htmlUrl As String, _
	xsltUrl As String, _
	xsltArgs As XsltArgumentList, _
	type As Type _
) As Object
Visual C++
public:
Object^ CreateInstance(
	String^ htmlUrl, 
	String^ xsltUrl, 
	XsltArgumentList^ xsltArgs, 
	Type^ type
)

Parameters

htmlUrl
Type: System..::..String
The requested URL, such as "http://Myserver/Mypath/Myfile.asp".
xsltUrl
Type: System..::..String
The URL that specifies the XSLT stylesheet to load.
xsltArgs
Type: System.Xml.Xsl..::..XsltArgumentList
An XsltArgumentList containing the namespace-qualified arguments used as input to the transform.
type
Type: System..::..Type
The requested type.

Return Value

An newly created instance.

See Also