System.Xml.XmlNamespaceManager.LookupNamespace Method

Gets the namespace URI for the specified prefix.

Syntax

public virtual string LookupNamespace (string prefix)

Parameters

prefix
The prefix whose namespace URI you want to resolve. To match the default namespace, pass String.Empty.

Returns

Returns the namespace URI for prefix or null if there is no mapped namespace. The returned string is atomized.

For more information on atomized strings, see the System.Xml.XmlNameTable class.

Remarks

Operation
As described above.

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, 4.0.0.0