System.Xml.DataDocumentXPathNavigator.GetAttribute C# (CSharp) Méthode

GetAttribute() public méthode

public GetAttribute ( string localName, string namespaceURI ) : string
localName string
namespaceURI string
Résultat 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;
        }