## XmlNamespaceManager::HasNamespace method


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

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 前缀 | String | 您想要查找的命名空间前缀。 |

### ReturnValue

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

## 另见

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