XmlNodeEventArgs::Text Property

 

Gets the text of the XML node being deserialized.

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

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

Property Value

Type: System::String^

The text of the XML node being deserialized.

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

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

.NET Framework
Available since 1.1
Return to top
Show: