IDialogVisualizerService.ShowDialog Method (CommonDialog)
Namespace: Microsoft.VisualStudio.DebuggerVisualizers
Assembly: Microsoft.VisualStudio.DebuggerVisualizers (in Microsoft.VisualStudio.DebuggerVisualizers.dll)
Syntax
'Declaration
Function ShowDialog ( _
dialog As CommonDialog _
) As DialogResult
DialogResult ShowDialog(
CommonDialog dialog
)
DialogResult ShowDialog(
CommonDialog^ dialog
)
abstract ShowDialog :
dialog:CommonDialog -> DialogResult
function ShowDialog(
dialog : CommonDialog
) : DialogResult
Parameters
- dialog
Type: System.Windows.Forms.CommonDialog
Any dialog derived from System.Windows.Forms.CommonDialog.
Return Value
Type: System.Windows.Forms.DialogResult
Remarks
Displays any of the Common Dialogs: System.Windows.Forms.ColorDialog, FileDialog, FolderBrowserDialog, FontDialog, PageSetupDialog, or System.Windows.Forms.PrintDialog.
Examples
public class DebuggerSide : DialogDebuggerVisualizer
{
override protected void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
{
ColorDialog myDialog = new ColorDialog();
windowService.ShowDialog(myDialog);
}
// Other class methods ommitted for clarity.
}
.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.