Megosztás a következőn keresztül:


IVisualizerObjectProvider.GetObject Method

Namespace:  Microsoft.VisualStudio.DebuggerVisualizers
Assembly:  Microsoft.VisualStudio.DebuggerVisualizers (in Microsoft.VisualStudio.DebuggerVisualizers.dll)

Syntax

'Declaration
Function GetObject As Object
'Usage
Dim instance As IVisualizerObjectProvider 
Dim returnValue As Object 

returnValue = instance.GetObject()
Object GetObject()
Object^ GetObject()
function GetObject() : Object

Return Value

Type: System.Object
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.

Remarks

Calls GetData and deserializes the data into an 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.
}

.NET Framework Security

See Also

Reference

IVisualizerObjectProvider Interface

IVisualizerObjectProvider Members

Microsoft.VisualStudio.DebuggerVisualizers Namespace