Bagikan melalui


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

  • 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

See Also

Reference

IVsUIWin32Element Interface

Microsoft.VisualStudio.Shell.Interop Namespace