Table of Contents

Method HasAttribute

Namespace
SharpVectors.Dom
Assembly
SharpVectors.Core.dll

HasAttribute(string)

Determines whether the current node has an attribute with the specified name.

bool HasAttribute(string name)

Parameters

name string

The name of the attribute to find. This is a qualified name. It is matched against the Name property of the matching node.

Returns

bool

true if the current node has the specified attribute; otherwise, false.

HasAttribute(string, string)

Determines whether the current node has an attribute with the specified local name and namespace URI.

bool HasAttribute(string localName, string namespaceURI)

Parameters

localName string

The local name of the attribute to find.

namespaceURI string

The namespace URI of the attribute to find.

Returns

bool

true if the current node has the specified attribute; otherwise, false.