DialogDebuggerVisualizer.Show Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Displays the visualizer.
protected public:
abstract void Show(Microsoft::VisualStudio::DebuggerVisualizers::IDialogVisualizerService ^ windowService, Microsoft::VisualStudio::DebuggerVisualizers::IVisualizerObjectProvider ^ objectProvider);
protected public:
abstract void Show(Microsoft::VisualStudio::DebuggerVisualizers::IDialogVisualizerService ^ windowService, Microsoft::VisualStudio::DebuggerVisualizers::IVisualizerObjectProvider ^ objectProvider);
abstract void Show(Microsoft::VisualStudio::DebuggerVisualizers::IDialogVisualizerService const & windowService, Microsoft::VisualStudio::DebuggerVisualizers::IVisualizerObjectProvider const & objectProvider);
protected internal abstract void Show (Microsoft.VisualStudio.DebuggerVisualizers.IDialogVisualizerService windowService, Microsoft.VisualStudio.DebuggerVisualizers.IVisualizerObjectProvider objectProvider);
abstract member Show : Microsoft.VisualStudio.DebuggerVisualizers.IDialogVisualizerService * Microsoft.VisualStudio.DebuggerVisualizers.IVisualizerObjectProvider -> unit
Protected Friend MustOverride Sub Show (windowService As IDialogVisualizerService, objectProvider As IVisualizerObjectProvider)
Parameters
- windowService
- IDialogVisualizerService
Provides methods your visualizer can use to display Windows forms, controls, and dialogs.
- objectProvider
- IVisualizerObjectProvider
Provides communication from the debugger side of the visualizer to the object source (VisualizerObjectSource) on the debuggee side.
Examples
public class Visualizer1 : DialogDebuggerVisualizer
{
protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
{
IVisualizerObjectProvider3 objectProvider3 = (IVisualizerObjectProvider3)objectProvider;
// TODO: Get the object to display a visualizer for.
var data = objectProvider.GetObject<MyExampleType>();
// 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);
}
}
Remarks
This is the method that you override to show the user interface for your visualizer.