System::Xml::XPath::XPathNavigator::MoveToAttribute 方法

XPathNavigator::MoveToAttribute method

XPathNavigator 移动到具有匹配本地名称和命名空间 URI 的属性。

virtual bool System::Xml::XPath::XPathNavigator::MoveToAttribute(String localName, String namespaceURI)
ParameterType描述
localName字符串属性的本地名称。
namespaceURI字符串属性的命名空间 URI;空命名空间时为 nullptr

ReturnValue

true if the XPathNavigator is successful moving to the attribute; otherwise, false. If false, the position of the XPathNavigator is unchanged.

另见