IVsUIFactory.CreateUIElement(Guid, UInt32, IVsUIElement) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建指定元素的实例。
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
弄已创建的元素。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。