AncestorsAndSelf Method (String)

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Gets all anscestor nodes and the current node

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

Syntax

C#
public IEnumerable<HtmlNode> AncestorsAndSelf(
	string name
)
Visual Basic
Public Function AncestorsAndSelf ( _
	name As String _
) As IEnumerable(Of HtmlNode)
Visual C++
public:
IEnumerable<HtmlNode^>^ AncestorsAndSelf(
	String^ name
)

Parameters

name
Type: System..::..String

[Missing <param name="name"/> documentation for "M:HtmlAgilityPack.HtmlNode.AncestorsAndSelf(System.String)"]

Return Value

See Also