Export (0) Print
Expand All

IVisualizerObjectProvider.GetObject Method 

Namespace: Microsoft.VisualStudio.DebuggerVisualizers
Assembly: Microsoft.VisualStudio.DebuggerVisualizers (in microsoft.visualstudio.debuggervisualizers.dll)

Object GetObject ()
Object GetObject ()
function GetObject () : Object

Return Value

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/ReplaceObject or TransferData/TransferObject.

Return Value

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/ReplaceObject or TransferData/TransferObject.

Calls GetData and deserializes the data into an object.

Calls GetData and deserializes the data into an object.

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

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