XPathNavigator.GetAttribute Method

Gets the value of the attribute with the specified local name and namespace URI.

Namespace:  System.Xml.XPath
Assembly:  System.Xml.XPath (in System.Xml.XPath.dll)

public virtual string GetAttribute(
	string localName,
	string namespaceURI
)

Parameters

localName
Type: System.String
The local name of the attribute.
namespaceURI
Type: System.String
The namespace URI of the attribute.

Return Value

Type: System.String
A String that contains the value of the specified attribute; String.Empty if a matching attribute is not found, or if the XPathNavigator is not positioned on an element node.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: