Freigeben über


XmlNodeEventArgs.ObjectBeingDeserialized Eigenschaft

Definition

Ruft das Objekt ab, das gerade deserialisiert wird.

public:
 property System::Object ^ ObjectBeingDeserialized { System::Object ^ get(); };
public object? ObjectBeingDeserialized { get; }
public object ObjectBeingDeserialized { get; }
member this.ObjectBeingDeserialized : obj
Public ReadOnly Property ObjectBeingDeserialized As Object

Eigenschaftswert

Object

Das Object, das deserialisiert wird.

Beispiele

Im folgenden Beispiel wird der vom Methode zurückgegebene ToString Wert gedruckt, wenn die Deserialize Methode auf einen unbekannten XML-Knoten tritt.

private:
   void serializer_UnknownNode( Object^ /*sender*/, XmlNodeEventArgs^ e )
   {
      Object^ o = e->ObjectBeingDeserialized;
      Console::WriteLine( "Object being deserialized: {0}", o );
   }
private void serializer_UnknownNode
(object sender, XmlNodeEventArgs e)
{
   object o = e.ObjectBeingDeserialized;
   Console.WriteLine("Object being deserialized: "
   + o.ToString());
}
Private Sub serializer_UnknownNode _
                (ByVal sender As Object, _
                 ByVal e As XmlNodeEventArgs)
    Dim o As Object = e.ObjectBeingDeserialized
    Console.WriteLine("Object being deserialized: " & o.ToString())
End Sub

Gilt für

Siehe auch