共用方式為


IVisualizerObjectProvider.GetObject 方法

定義

警告

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

使用 GetData 取得數據,然後還原串行化,假設已完成預設串行化

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

傳回

正在可視化的數據物件。 這實際上是您在偵錯中可視化之物件的調試程式端複本。 如果您修改此物件的內容,除非您使用 ReplaceData(Stream)/ ReplaceObject(Object)TransferData(Stream)/TransferObject(Object),否則不會在偵錯中反映變更。

屬性

範例

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

備註

呼叫 GetData() 並將數據還原串行化為物件。

適用於