HasAttribute

Element.HasAttribute method

Returns true when an attribute with a given name is specified on this element or has a default value, false otherwise.

public bool HasAttribute(string name)
Parameter Type Description
name String The attribute name.

Return Value

true if the specified name has attribute; otherwise, false.

See Also