IVsUIFactory::CreateUIElement Method (Guid, UInt32, IVsUIElement^)

 

Creates an instance of the specified element.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

int CreateUIElement(
	[InAttribute] Guid% guid,
	unsigned int dw,
	[OutAttribute] IVsUIElement^% ppUIElement
)

Parameters

guid
Type: System::Guid

The GUID of the command.

dw
Type: System::UInt32

The command ID.

ppUIElement
Type: Microsoft.VisualStudio.Shell.Interop::IVsUIElement^

[out] The element that was created.

Return Value

Type: System::Int32

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

Return to top
Show: