CreateAttribute Method (String, String)

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Creates an HTML attribute with the specified name.

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

Syntax

C#
public HtmlAttribute CreateAttribute(
	string name,
	string value
)
Visual Basic
Public Function CreateAttribute ( _
	name As String, _
	value As String _
) As HtmlAttribute
Visual C++
public:
HtmlAttribute^ CreateAttribute(
	String^ name, 
	String^ value
)

Parameters

name
Type: System..::..String
The name of the attribute. May not be null.
value
Type: System..::..String
The value of the attribute.

Return Value

The new HTML attribute.

See Also