共用方式為


XmlNodeEventArgs.Text 屬性

定義

取得要還原序列化的 XML 節點文字。

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

屬性值

要進行還原序列化的 XML 節點的文字。

範例

下列範例會列印導致事件發生之未知 XML 節點的 UnknownNode 文字。

private:
   void serializer_UnknownNode( Object^ /*sender*/, XmlNodeEventArgs^ e )
   {
      Console::WriteLine( "UnknownNode Text: {0}", e->Text );
   }
private void serializer_UnknownNode
(object sender, XmlNodeEventArgs e)
{
   Console.WriteLine
   ("UnknownNode Text: " + e.Text);
}
Private Sub serializer_UnknownNode _
                (ByVal sender As Object, _
                 ByVal e As XmlNodeEventArgs)
    Console.WriteLine("UnknownNode Text: " & e.Text)
End Sub

適用於

另請參閱