IVsUIFactory.CreateUIElement(Guid, UInt32, IVsUIElement) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
Remarks
This method must be accessed on the main thread.