WindowHelper.ShowModalElement Method (IVsUIElement, Window)
Create the specified element and display it as a modal dialog using the specified window or the IDE's main window as parent
Namespace: Microsoft.Internal.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Déclaration
Public Shared Function ShowModalElement ( _
element As IVsUIElement, _
owner As Window _
) As Integer
'Utilisation
Dim element As IVsUIElement
Dim owner As Window
Dim returnValue As Integer
returnValue = WindowHelper.ShowModalElement(element, _
owner)
public static int ShowModalElement(
IVsUIElement element,
Window owner
)
public:
static int ShowModalElement(
IVsUIElement^ element,
Window^ owner
)
static member ShowModalElement :
element:IVsUIElement *
owner:Window -> int
public static function ShowModalElement(
element : IVsUIElement,
owner : Window
) : int
Parameters
- element
Type: Microsoft.VisualStudio.Shell.Interop.IVsUIElement
Element to create and display as dialog
- owner
Type: System.Windows.Window
The Window to be used for parent
Return Value
Type: System.Int32
.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.