IVsUIFactory.CreateUIElement(Guid, UInt32, IVsUIElement) Method

Definition

Creates an instance of the specified element.

public:
 int CreateUIElement(Guid % guid, System::UInt32 dw, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUIElement ^ % ppUIElement);
public int CreateUIElement (ref Guid guid, uint dw, out Microsoft.VisualStudio.Shell.Interop.IVsUIElement ppUIElement);
abstract member CreateUIElement : Guid * uint32 * IVsUIElement -> int
Public Function CreateUIElement (ByRef guid As Guid, dw As UInteger, ByRef ppUIElement As IVsUIElement) As Integer

Parameters

guid
Guid

The GUID of the command.

dw
UInt32

The command ID.

ppUIElement
IVsUIElement

[out] The element that was created.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to