## XPathNavigator::GetNamespacesInScope method


返回当前节点的作用域内命名空间。

```cpp
SharedPtr<Collections::Generic::IDictionary<String, String>> System::Xml::XPath::XPathNavigator::GetNamespacesInScope(XmlNamespaceScope scope) override
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| scope | XmlNamespaceScope | 指定要返回的命名空间的 [XmlNamespaceScope](../../../system.xml/xmlnamespacescope/) 值。 |

### ReturnValue

一个以前缀为键的命名空间名称的 IDictionary 集合。

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IDictionary](../../../system.collections.generic/idictionary/)
* Class [String](../../../system/string/)
* Enum [XmlNamespaceScope](../../../system.xml/xmlnamespacescope/)
* Class [XPathNavigator](../)
* Namespace [System::Xml::XPath](../../)
* Library [Aspose.Page for C++](../../../)
