共用方式為


XmlNodeEventArgs.Name 屬性

定義

取得要還原序列化的 XML 節點名稱。

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

屬性值

要進行還原序列化的節點名稱。

範例

下列範例會列印造成 UnknownNode 事件發生之未知節點的名稱。

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

適用於

另請參閱