System::Xml::XPath::XPathNavigator::GetAttribute method

XPathNavigator::GetAttribute method

返回具有指定本地名称和命名空间 URI 的属性的值。

virtual String System::Xml::XPath::XPathNavigator::GetAttribute(String localName, String namespaceURI)
ParameterType描述
localName字符串属性的本地名称。localName 区分大小写。
namespaceURI字符串属性的命名空间 URI。

ReturnValue

一个 String,其中包含指定属性的值;如果未找到匹配的属性,或 XPathNavigator 未定位在元素节点上,则为 String::Empty

另见