Upravit

Sdílet prostřednictvím


XmlNodeEventArgs.LocalName Property

Definition

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

public:
 property System::String ^ LocalName { System::String ^ get(); };
public string LocalName { get; }
member this.LocalName : string
Public ReadOnly Property LocalName As String

Property Value

The XML local name of the node being deserialized.

Examples

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 );
   }
private void serializer_UnknownNode
(object sender, XmlNodeEventArgs e)
{
   Console.WriteLine
   ("UnknownNode LocalName: " + e.LocalName);
}
Private Sub serializer_UnknownNode _
                    (ByVal sender As Object, _
                     ByVal e As XmlNodeEventArgs)                         
    Console.WriteLine("UnknownNode LocalName: " & e.LocalName)
End Sub

Remarks

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.

Applies to

See also