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

XPathNavigator::MoveToAttribute method

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

virtual bool System::Xml::XPath::XPathNavigator::MoveToAttribute(String localName, String namespaceURI)
参数类型描述
localNameString属性的本地名称。
namespaceURIString属性的命名空间 URI;空命名空间时为 nullptr

ReturnValue

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

另见