Compartir a través de


XmlNodeEventArgs.ObjectBeingDeserialized Propiedad

Definición

Obtiene el objeto que se está deserializando.

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

Valor de propiedad

Object

Object que se está deserializando.

Ejemplos

En el ejemplo siguiente se imprime el valor devuelto por el ToString método cuando el Deserialize método encuentra un nodo XML desconocido.

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

Se aplica a

Consulte también