System::Xml::XPath::XPathNavigator::GetAttribute 方法

XPathNavigator::GetAttribute method

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

virtual String System::Xml::XPath::XPathNavigator::GetAttribute(String localName, String namespaceURI)
参数类型描述
localNameString属性的本地名称。 localName 区分大小写。
namespaceURIString属性的命名空间 URI。

ReturnValue

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

另见