XmlNodeEventArgs.ObjectBeingDeserialized プロパティ

定義

逆シリアル化されているオブジェクトを取得します。

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

プロパティ値

Object

逆シリアル化される Object

次の例では、メソッドが不明な XML ノードを ToString 検出したときに Deserialize メソッドによって返される値を出力します。

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

適用対象

こちらもご覧ください