WindowHelper.ShowModalElement Method (Guid, UInt32, IVsUISimpleDataSource)
Create the specified element and display it as a modal dialog, using the main window of the IDE as the parent.
Namespace: Microsoft.Internal.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'宣言
Public Shared Function ShowModalElement ( _
factory As Guid, _
elementId As UInteger, _
dataSource As IVsUISimpleDataSource _
) As Integer
public static int ShowModalElement(
Guid factory,
uint elementId,
IVsUISimpleDataSource dataSource
)
Parameters
- factory
Type: System.Guid
The GUID of the UI factory that should create. the element
- elementId
Type: System.UInt32
The ID of the UI element to create.
- dataSource
Type: Microsoft.VisualStudio.Shell.Interop.IVsUISimpleDataSource
The data source.
Return Value
Type: System.Int32
The Win32 button ID, or 0 for unknown.
.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.