Click or drag to resize

HtmlNodeGetAttributeValue Method (String, String)

Helper method to get the value of an attribute of this node. If the attribute is not found, the default value will be returned.

Namespace:  WorkflowGen.My.HtmlAgilityPack
Assembly:  WorkflowGen.My (in WorkflowGen.My.dll) Version: 8.3.3.0 (8.3.3.20240926)
Syntax
public string GetAttributeValue(
	string name,
	string def
)

Parameters

name
Type: SystemString
The name of the attribute to get. May not be null.
def
Type: SystemString
The default value to return if not found.

Return Value

Type: String
The value of the attribute if found, the default value if not found.
See Also