HtmlAttributeCollectionGetAttributeValue Method

Return the value of the specified attribute from the provided node.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public static string GetAttributeValue(
	HtmlNodeItem node,
	string attributeName
)

Parameters

node  HtmlNodeItem
Reference to the HTML node in which to search for the specified attribute.
attributeName  String
Name of the attribute to find.

Return Value

String
Value of the specified attribute, if found. Otherwise, an empty string.

See Also