XmlNodeEventArgs::LocalName Property

 

Gets the XML local name of the XML node being deserialized.

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

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

Property Value

Type: System::String^

The XML local name of the node being deserialized.

The LocalName property returns the local name (also known as a local part) of an XML qualified name. The LocalName property conforms to the 1999 http://www.w3.org specification Namespaces in XML.

The following example prints the LocalName of an unknown XML node that is encountered when calling the XmlSerializer class's Deserialize method.

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

.NET Framework
Available since 1.1
Return to top
Show: