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.0.6.0 (8.0.6.20210916)
Syntax public string GetAttributeValue(
string name,
string def
)
Public Function GetAttributeValue (
name As String,
def As String
) As String
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:
StringThe value of the attribute if found, the default value if not found.
See Also