IVisualizerObjectProvider.GetObject Method

Definition

Gets the data using GetData and then deserializes assuming that defualt serialization has been done

public:
 System::Object ^ GetObject();
public:
 Platform::Object ^ GetObject();
winrt::Windows::Foundation::IInspectable GetObject();
public object GetObject ();
abstract member GetObject : unit -> obj
Public Function GetObject () As Object

Returns

The data object being visualized. This is actually a debugger-side copy of the object you are visualizing in the debuggee. If you modify the contents of this object, the changes will not be reflected back in the debuggee unless you use the ReplaceData(Stream)/ ReplaceObject(Object) or TransferData(Stream)/TransferObject(Object).

Examples

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

Remarks

Calls GetData() and deserializes the data into an object.

Applies to