System.Xml.DataDocumentXPathNavigator.GetAttribute C# (CSharp) Method

GetAttribute() public method

public GetAttribute ( string localName, string namespaceURI ) : string
localName string
namespaceURI string
return string
        public override string GetAttribute(string localName, string namespaceURI)
        {
            if (_curNode.NodeType != XPathNodeType.Element)
            {
                return string.Empty; //other type of nodes can't have attributes
            }

            _temp.MoveTo(_curNode);
            return _temp.MoveToAttribute(localName, namespaceURI) ? _temp.Value : string.Empty;
        }