## XmlNamespaceManager::HasNamespace method


返回一个值，指示提供的前缀在当前推送的作用域中是否已定义命名空间。

```cpp
virtual bool System::Xml::XmlNamespaceManager::HasNamespace(String prefix)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| prefix | 字符串 | 您想要查找的命名空间的前缀。 |

### ReturnValue

**true** if there is a namespace defined; otherwise, **false**.

## 另见

* Class [String](../../../system/string/)
* Class [XmlNamespaceManager](../)
* Namespace [System::Xml](../../)
* Library [Aspose.Page for C++](../../../)
