Click to Rate and Give Feedback

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
 
DialogDebuggerVisualizer Class 

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

Visual Basic (Declaration)
Public MustInherit Class DialogDebuggerVisualizer
Visual Basic (Usage)
Dim instance As DialogDebuggerVisualizer
C#
public abstract class DialogDebuggerVisualizer
C++
public ref class DialogDebuggerVisualizer abstract
J#
public abstract class DialogDebuggerVisualizer
JScript
public abstract class DialogDebuggerVisualizer

This is the debugger-side class, which receives data from the object source through the object provider. This class is responsible for showing and managing the user interface and optional editing of data. Typically, you only need to override the Show() method to use this class.

public class Visualizer1 : DialogDebuggerVisualizer
{
   protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
   {
      // TODO: Get the object to display a visualizer for.
      //       Cast the result of objectProvider.GetObject() 
      //       to the type of the object being visualized.
      object data = (object)objectProvider.GetObject();

      // TODO: Display your view of the object.
      //       Replace displayForm with your own custom Form or Control.
      Form displayForm = new Form();
      displayForm.Text = data.ToString();
      windowService.ShowDialog(displayForm);
   }
}
System.Object
  Microsoft.VisualStudio.DebuggerVisualizers.DialogDebuggerVisualizer
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker