HasAttribute()

XmlElement::HasAttribute(String) method

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

virtual bool System::Xml::XmlElement::HasAttribute(String name)

Arguments

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.

Return Value

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

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)

Arguments

ParameterTypeDescription
localNameStringThe local name of the attribute to find.
namespaceURIStringThe namespace URI of the attribute to find.

Return Value

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

See Also