HtmlNodeCollectionGetNodesWithAttribute(HtmlNodeCollection, String) Method

Return an array of nodes having the specified Attribute.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public static HtmlNodeItem[] GetNodesWithAttribute(
	HtmlNodeCollection nodes,
	string attributeName
)

Parameters

nodes  HtmlNodeCollection
Collection of Nodes in which to search.
attributeName  String
Name of the attribute to search for.

Return Value

HtmlNodeItem
Array of Nodes containing the specified Attribute, if found. Otherwise, a zero length array.

See Also