Mono Class Library: System.Xml.XmlNamespaceManager Overview | MembersSystem.Xml.XmlNamespaceManager.AddNamespace Method |
Adds the given namespace to the collection of namespaces maintained by the current instance in XmlNamespaceManager.NameTable. [Edit]
|
Type Reason ArgumentException prefix is "xml" or "xmlns". [Edit] ArgumentNullException prefix is null, or uri is null. [Edit]
Note:The same prefix and namespace combination can exist across different scopes.
Operation
As described above.This method assumes all prefixes and namespaces are valid but does not check prefix and uri for conformance to the W3C specification.
If the specified prefix/namespace combination already exists within the current scope, their string instances will be replaced in XmlNamespaceManager.NameTable with the new string instances of prefix and uri.
Note to Inheritors
Override this method to check prefix and uri for conformance to the W3C specification. [Edit]
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0