CreateAttribute Method (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
)
Visual Basic
Public Function CreateAttribute ( _
	name As String _
) As HtmlAttribute
Visual C++
public:
HtmlAttribute^ CreateAttribute(
	String^ name
)

Parameters

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

Return Value

The new HTML attribute.

See Also