WindowHelper.CreateChildElement Method (Guid, UInt32, IVsUISimpleDataSource, IntPtr)
Create and displays a UI element as a modeless child window
Namespace: Microsoft.Internal.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Déclaration
Public Shared Function CreateChildElement ( _
factory As Guid, _
elementId As UInteger, _
dataSource As IVsUISimpleDataSource, _
parent As IntPtr _
) As IntPtr
'Utilisation
Dim factory As Guid
Dim elementId As UInteger
Dim dataSource As IVsUISimpleDataSource
Dim parent As IntPtr
Dim returnValue As IntPtr
returnValue = WindowHelper.CreateChildElement(factory, _
elementId, dataSource, parent)
public static IntPtr CreateChildElement(
Guid factory,
uint elementId,
IVsUISimpleDataSource dataSource,
IntPtr parent
)
public:
static IntPtr CreateChildElement(
Guid factory,
unsigned int elementId,
IVsUISimpleDataSource^ dataSource,
IntPtr parent
)
static member CreateChildElement :
factory:Guid *
elementId:uint32 *
dataSource:IVsUISimpleDataSource *
parent:IntPtr -> IntPtr
public static function CreateChildElement(
factory : Guid,
elementId : uint,
dataSource : IVsUISimpleDataSource,
parent : IntPtr
) : IntPtr
Parameters
- factory
Type: System.Guid
The Guid of the UIFactory creating the UI element
- elementId
Type: System.UInt32
The ID of the UI element to be created and displayed
- dataSource
Type: Microsoft.VisualStudio.Shell.Interop.IVsUISimpleDataSource
- parent
Type: System.IntPtr
The parent window handle
Return Value
Type: System.IntPtr
.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.