This documentation is archived and is not being maintained.

XmlNamespaceManager.RemoveNamespace Method

Removes the given namespace for the given prefix.

[Visual Basic]
Public Overridable Sub RemoveNamespace( _
   ByVal prefix As String, _
   ByVal uri As String _
public virtual void RemoveNamespace(
 string prefix,
 string uri
public: virtual void RemoveNamespace(
 String* prefix,
 String* uri
public function RemoveNamespace(
   prefix : String,
 uri : String


The prefix for the namespace
The namespace to remove for the given prefix. The namespace removed is from the current namespace scope. Namespaces outside the current scope are ignored.


Exception Type Condition
ArgumentNullException The value of prefix or uri is a null reference (Nothing in Visual Basic).


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

XmlNamespaceManager Class | XmlNamespaceManager Members | System.Xml Namespace