Bagikan melalui


IVisualizerObjectProvider.GetObject Metode

Definisi

Perhatian

This method uses binary serialization which is no longer supported, please use IVisualizerObjectProvider3.GetObject instead.

Mendapatkan data menggunakan GetData lalu mendeserialisasi dengan asumsi bahwa serialisasi default telah dilakukan

public:
 System::Object ^ GetObject();
public:
 Platform::Object ^ GetObject();
winrt::Windows::Foundation::IInspectable GetObject();
public object GetObject ();
[System.Obsolete("This method uses binary serialization which is no longer supported, please use IVisualizerObjectProvider3.GetObject instead.")]
public object GetObject ();
abstract member GetObject : unit -> obj
[<System.Obsolete("This method uses binary serialization which is no longer supported, please use IVisualizerObjectProvider3.GetObject instead.")>]
abstract member GetObject : unit -> obj
Public Function GetObject () As Object

Mengembalikan

Objek data sedang divisualisasikan. Ini sebenarnya adalah salinan sisi debugger dari objek yang Anda visualisasikan di debuggee. Jika Anda mengubah konten objek ini, perubahan tidak akan tercermin kembali dalam debuggee kecuali Anda menggunakan ReplaceData(Stream)/ ReplaceObject(Object) atau .TransferData(Stream)/TransferObject(Object)

Atribut

Contoh

public class DebuggerSide : DialogDebuggerVisualizer
{
    override protected void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
    {
       MessageBox.Show(objectProvider.GetObject().ToString());
    }
    // Other DebuggerSide methods ommitted for clarity.  
}

Keterangan

GetData() Memanggil dan mendeserialisasi data ke dalam objek.

Berlaku untuk