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 _
)
[C#]
public virtual void RemoveNamespace(
 string prefix,
 string uri
);
[C++]
public: virtual void RemoveNamespace(
 String* prefix,
 String* uri
);
[JScript]
public function RemoveNamespace(
   prefix : String,
 uri : String
);

Parameters

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

Exceptions

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

Requirements

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

Show: