IVsUIFactory.CreateUIElement(Guid, UInt32, IVsUIElement) 方法

定义

创建指定元素的实例。

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 :  * uint32 *  -> int
Public Function CreateUIElement (ByRef guid As Guid, dw As UInteger, ByRef ppUIElement As IVsUIElement) As Integer

参数

guid
Guid

命令的 GUID。

dw
UInt32

命令 ID。

ppUIElement
IVsUIElement

弄已创建的元素。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

适用于