DialogWindow.ShowModal Method
Finds the parent/owner of the dialog from the Visual Studio shell and display the dialog Sets the shell in modal state while the dialog is shown, and centers correctly the dialog in the parent window.
Namespace: Microsoft.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
‘선언
Public Function ShowModal As Nullable(Of Boolean)
‘사용 방법
Dim instance As DialogWindow
Dim returnValue As Nullable(Of Boolean)
returnValue = instance.ShowModal()
public Nullable<bool> ShowModal()
public:
Nullable<bool> ShowModal()
member ShowModal : unit -> Nullable<bool>
public function ShowModal() : Nullable<boolean>
Return Value
Type: System.Nullable<Boolean>
Remarks
If the dialog is parented to a WPF window, ShowDialog() can also be used to display it, but before doing so one will have to initialize correctly the dialog Owner and WindowStartupLocation.
.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.