RdfAParserBaseTHtmlDocument, TElement, TNode, TAttributeHasAttribute Method |
Determine if an element has a particular attribute.
Namespace:
VDS.RDF.Parsing
Assembly:
dotNetRDF (in dotNetRDF.dll) Version:
Syntax protected abstract bool HasAttribute(
TElement element,
string attributeName
)
Protected MustOverride Function HasAttribute (
element As TElement,
attributeName As String
) As Boolean
Parameters
- element
- Type: TElement
The element to check. - attributeName
- Type: SystemString
The name of the attribute to check for.
Return Value
Type:
BooleanTrue if the element has an attribute named
attributeName, false otherwise.
See Also