HtmlAttributeCollectionSetAttributeValue Method

Set the value of the specified attribute from the provided node, creating it if it didn't already exist.

Definition

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

Parameters

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

See Also