Mono Class Library: System.Xml.XmlNamespaceManager Overview | Members

System.Xml.XmlNamespaceManager.HasNamespace Method

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

public virtual bool HasNamespace (string prefix)

Parameters

prefix
A string containing the prefix of the namespace to find.

Returns

A bool where true indicates there is a namespace defined; otherwise, false. If prefix is null, returns false.

Remarks

Operation
As described above.

When prefix is set to string.Empty, this method returns true to indicate a default empty namespace is defined in the current scope.

Note to Inheritors
Override this method to customize the behavior of this method in types derived from the System.Xml.XmlNamespaceManager class.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0