Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XmlNodeEventArgs::NamespaceURI Property

 

Gets the namespace URI that is associated with the XML node being deserialized.

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

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

Property Value

Type: System::String^

The namespace URI that is associated with the XML node being deserialized.

The following example prints the URI of the unknown XML node that caused the UnknownNode event to occur.

private:
   void serializer_UnknownNode( Object^ /*sender*/, XmlNodeEventArgs^ e )
   {
      Console::WriteLine( "UnknownNode Namespace URI: {0}", e->NamespaceURI );
   }

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft