Prepend Method

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Inserts the specified attribute as the first node in the collection.

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

Syntax

C#
public HtmlAttribute Prepend(
	HtmlAttribute newAttribute
)
Visual Basic
Public Function Prepend ( _
	newAttribute As HtmlAttribute _
) As HtmlAttribute
Visual C++
public:
HtmlAttribute^ Prepend(
	HtmlAttribute^ newAttribute
)

Parameters

newAttribute
Type: HtmlAgilityPack..::..HtmlAttribute
The attribute to insert. May not be null.

Return Value

The prepended attribute.

See Also