VisualizerDevelopmentHost.ShowVisualizer Method (Control)
Namespace: Microsoft.VisualStudio.DebuggerVisualizers
Assembly: Microsoft.VisualStudio.DebuggerVisualizers (in Microsoft.VisualStudio.DebuggerVisualizers.dll)
Syntax
'Declaration
Public Sub ShowVisualizer ( _
parentControl As Control _
)
public void ShowVisualizer(
Control parentControl
)
public:
void ShowVisualizer(
Control^ parentControl
)
member ShowVisualizer :
parentControl:Control -> unit
public function ShowVisualizer(
parentControl : Control
)
Parameters
- parentControl
Type: System.Windows.Forms.Control
A control that you want the visualizer parented to.
Remarks
Calls the visualizer development host to show the visualizer, passing a control that you want the visualizer parented to.
Examples
// Create a new Control
Control myControl = new Control();
// ...
// Create the visualizer host
VisualizerDevelopmentHost visualizerHost = new VisualizerDevelopmentHost(objectToVisualize, typeof(SecondVisualizer));
// Call the visualizer host to show the visualizer
visualizerHost.ShowVisualizer(myControl);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.