System::Xml::XmlElement::HasAttribute method

XmlElement::HasAttribute(String, String) method

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

virtual bool System::Xml::XmlElement::HasAttribute(String localName, String namespaceURI)
ParameterTypeDescription
localNameStringThe local name of the attribute to find.
namespaceURIStringThe namespace URI of the attribute to find.

ReturnValue

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

See Also

XmlElement::HasAttribute(String) method

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

virtual bool System::Xml::XmlElement::HasAttribute(String name)
ParameterTypeDescription
nameStringThe name of the attribute to find. This is a qualified name. It is matched against the get_Name value of the matching node.

ReturnValue

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

See Also