Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
NamespaceURI Property

XmlValidatingReader::NamespaceURI Property

Gets the namespace Uniform Resource Identifier (URI) (as defined in the World Wide Web Consortium (W3C) Namespace specification) of the node on which the reader is positioned.

Namespace:  System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public:
virtual property String^ NamespaceURI {
	String^ get () override;
}

Property Value

Type: System::String
The namespace URI of the current node; otherwise an empty string.

This property is relevant to Element and Attribute nodes only.

NoteNote

The XmlValidatingReader class is obsolete in .NET Framework 2.0. You can create a validating XmlReader instance by using the XmlReaderSettings class and the Create method. For more information, see the Remarks section of the XmlReader reference page.

The following example reads an XML fragment.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft