WindowHelper.ShowModalElement Method (Guid, UInt32, IVsUISimpleDataSource)
Create the specified element and display it as a modal dialog using 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
‘선언
Public Shared Function ShowModalElement ( _
factory As Guid, _
elementId As UInteger, _
dataSource As IVsUISimpleDataSource _
) As Integer
‘사용 방법
Dim factory As Guid
Dim elementId As UInteger
Dim dataSource As IVsUISimpleDataSource
Dim returnValue As Integer
returnValue = WindowHelper.ShowModalElement(factory, _
elementId, dataSource)
public static int ShowModalElement(
Guid factory,
uint elementId,
IVsUISimpleDataSource dataSource
)
public:
static int ShowModalElement(
Guid factory,
unsigned int elementId,
IVsUISimpleDataSource^ dataSource
)
static member ShowModalElement :
factory:Guid *
elementId:uint32 *
dataSource:IVsUISimpleDataSource -> int
public static function ShowModalElement(
factory : Guid,
elementId : uint,
dataSource : IVsUISimpleDataSource
) : int
Parameters
- factory
Type: System.Guid
The guid of the UIFactory supporting the element
- elementId
Type: System.UInt32
The ID of the UI Element to create
- dataSource
Type: Microsoft.VisualStudio.Shell.Interop.IVsUISimpleDataSource
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.