IVsUIWin32Element.ShowModal Method
Show the window as a modal dialog box.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Syntax
'Declaration
Function ShowModal ( _
parent As IntPtr, _
<OutAttribute> ByRef pDlgResult As Integer _
) As Integer
int ShowModal(
IntPtr parent,
out int pDlgResult
)
int ShowModal(
IntPtr parent,
[OutAttribute] int% pDlgResult
)
abstract ShowModal :
parent:IntPtr *
pDlgResult:int byref -> int
function ShowModal(
parent : IntPtr,
pDlgResult : int
) : int
Parameters
- parent
Type: System.IntPtr
[in] The HWND of the parent window.
- pDlgResult
Type: System.Int32%
[out] Location to return the dialog result.
Return Value
Type: System.Int32
Returns S_OK after the user closes the dialog.
.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.