Compartir a través de


DialogDebuggerVisualizer Class

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.DebuggerVisualizers.DialogDebuggerVisualizer

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

Syntax

'Declaration
Public MustInherit Class DialogDebuggerVisualizer
public abstract class DialogDebuggerVisualizer
public ref class DialogDebuggerVisualizer abstract
[<AbstractClass>]
type DialogDebuggerVisualizer =  class end
public abstract class DialogDebuggerVisualizer

The DialogDebuggerVisualizer type exposes the following members.

Constructors

  Name Description
Protected method DialogDebuggerVisualizer

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method Show
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

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.

Examples

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);
   }
}

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.DebuggerVisualizers Namespace