A Sandcastle Documented Class Library |
HtmlNode..::..GetAttributeValue Method (String, Boolean) |
HtmlNode Class See Also Send Feedback |
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: HtmlAgilityPack
Assembly: HtmlAgilityPack (in HtmlAgilityPack.dll) Version: 1.4.0.0 (1.4.0.0)
Syntax
C# |
---|
public bool GetAttributeValue( string name, bool def ) |
Visual Basic |
---|
Public Function GetAttributeValue ( _ name As String, _ def As Boolean _ ) As Boolean |
Visual C++ |
---|
public: bool GetAttributeValue( String^ name, bool def ) |
Parameters
- name
- Type: System..::..String
The name of the attribute to get. May not be null.
- def
- Type: System..::..Boolean
The default value to return if not found.