Click or drag to resize

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
)

Parameters

element
Type: TElement
The element to check.
attributeName
Type: SystemString
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