XElementHelper.HasAttribute Method

Namespace
Kampute.DocToolkit.Support
Assembly
  • Kampute.DocToolkit.dll

Definition

Determines whether the element has an attribute with the specified name.
public static bool HasAttribute(this XElement element, string attributeName)

Parameters

element XElement
The XElement instance.
attributeName string
The name of the attribute.

Returns

bool
true if the attribute exists; otherwise, false.