Click or drag to resize

RdfAParserBase<THtmlDocument, TElement, TNode, TAttribute>.HasAttribute 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
)

Parameters

element
Type: TElement
The element to check.
attributeName
Type: System.String
The name of the attribute to check for.

Return Value

Type: Boolean
True if the element has an attribute named attributeName, false otherwise.
See Also