XmlNodeEventArgs.Name Property

 

Gets the name of the XML node being deserialized.

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

public string Name { get; }

Property Value

Type: System.String

The name of the node being deserialized.

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

private void serializer_UnknownNode
(object sender, XmlNodeEventArgs e)
{
   Console.WriteLine
   ("UnknownNode Name: " + e.Name);
}

.NET Framework
Available since 1.1
Return to top
Show: