Gets the value of the HTML attribute with the specified LocalName and NamespaceURI.
Namespace: HtmlAgilityPack
Assembly: HtmlAgilityPack (in HtmlAgilityPack.dll) Version: 1.4.0.0 (1.4.0.0)
Syntax
| Visual Basic |
|---|
Public Overrides Function GetAttribute ( _
localName As String, _
namespaceURI As String _
) As String |
| Visual C++ |
|---|
public:
virtual String^ GetAttribute(
String^ localName,
String^ namespaceURI
) override |
Parameters
- localName
- Type: System..::..String
The local name of the HTML attribute.
- namespaceURI
- Type: System..::..String
The namespace URI of the attribute. Unsupported with the HtmlNavigator implementation.
Return Value
The value of the specified HTML attribute. String.Empty or null if a matching attribute is not found or if the navigator is not positioned on an element node.
See Also