MoveToAttribute Method

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Moves to the HTML attribute with matching LocalName and NamespaceURI.

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

Syntax

C#
public override bool MoveToAttribute(
	string localName,
	string namespaceURI
)
Visual Basic
Public Overrides Function MoveToAttribute ( _
	localName As String, _
	namespaceURI As String _
) As Boolean
Visual C++
public:
virtual bool MoveToAttribute(
	String^ localName, 
	String^ namespaceURI
) override

Parameters

localName
Type: System..::..String
The local name of the HTML attribute.
namespaceURI
Type: System..::..String
The namespace URI of the attribute. Unsupported with the HtmlNavigator implementation.

Return Value

true if the HTML attribute is found, otherwise, false. If false, the position of the navigator does not change.

See Also