VisualizerDevelopmentHost.ShowVisualizer Method (IWin32Window)
Namespace: Microsoft.VisualStudio.DebuggerVisualizers
Assembly: Microsoft.VisualStudio.DebuggerVisualizers (in Microsoft.VisualStudio.DebuggerVisualizers.dll)
Syntax
'Declaration
Public Sub ShowVisualizer ( _
parentWindow As IWin32Window _
)
public void ShowVisualizer(
IWin32Window parentWindow
)
public:
void ShowVisualizer(
IWin32Window^ parentWindow
)
member ShowVisualizer :
parentWindow:IWin32Window -> unit
public function ShowVisualizer(
parentWindow : IWin32Window
)
Parameters
parentWindow
Type: System.Windows.Forms.IWin32WindowA window that you want the visualizer parented to.
Remarks
Calls the visualizer development host to show the visualizer, passing a window that you want the visualizer parented to.
Examples
// Create a class that implements IWin32Window
public class fooWindow : IWin32Window
{
#region IWin32Window Members
public IntPtr Handle
{
get { throw new Exception("The method or operation is not implemented."); }
}
#endregion
}
public static void TestShowVisualizer(object objectToVisualize)
{
// Create an object of class fooWindow
fooWindow myWindow = new fooWindow();
// Create the visualizer host
VisualizerDevelopmentHost visualizerHost = new VisualizerDevelopmentHost(objectToVisualize, typeof(SecondVisualizer));
// Call the visualizer host to show the visualizer
visualizerHost.ShowVisualizer(myWindow);
}
.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.