HtmlAttributeCollectionGetAttributes Method

Return a collection of attributes matching the specified names in the provided node.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public static List<HtmlAttributeItem> GetAttributes(
	HtmlNodeItem node,
	params string[] attributeNames
)

Parameters

node  HtmlNodeItem
Reference to the HTML node in which to search for the specified attributes.
attributeNames  String
Array of attribute names to find.

Return Value

ListHtmlAttributeItem
Reference to a list of attributes found in the provided node, if found. Otherwise, an empty list.

See Also