XmlNodeEventArgs.NamespaceURI Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 string NamespaceURI { 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: " + e.NamespaceURI);
}

.NET Framework
Available since 1.1
Return to top
Show: