## XmlNamespaceManager::HasNamespace method


Returns a value indicating whether the supplied prefix has a namespace defined for the current pushed scope.

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


| Parameter | Type | Description |
| --- | --- | --- |
| prefix | String | The prefix of the namespace you want to find. |

### ReturnValue

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

## See Also

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