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

System.Xml.XmlNamespaceManager.RemoveNamespace Method

Removes the specified namespace associated with the specified prefix from the namespace collection maintained by the current instance. [Edit]

public virtual void RemoveNamespace (string prefix, string uri)

Parameters

prefix
A string specifying the prefix. [Edit]
uri
A string specifying the namespace to remove. [Edit]
uri
Documentation for this section has not yet been entered. [Edit]

Exceptions

TypeReason
ArgumentNullExceptionprefix is null, or uri is null. [Edit]

Remarks

Operation
As described above.

The namespace removed is from the current namespace scope. Namespaces outside the current scope are ignored. If prefix or uri does not exist in the collection, this method simply returns.

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

[Edit]

Requirements

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