CreateInstance Method (String, String, XsltArgumentList, Type, String)

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

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.
xmlPath
Type: System..::..String
A file path where the temporary XML before transformation will be saved. Mostly used for debugging purposes.

Return Value

An newly created instance.

See Also