SOleComponentUIManager 接口

传递给 GetService 返回对 IOleComponentUIManagerIOleInPlaceComponentUIManager 接口。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)

语法

声明
<ComVisibleAttribute(False)> _
<GuidAttribute("5EFC7974-14BC-11CF-9B2B-00AA00573819")> _
<GuidAttribute("5EFC7974-14BC-11CF-9B2B-00AA00573819")> _
Public Interface SOleComponentUIManager
[ComVisibleAttribute(false)]
[GuidAttribute("5EFC7974-14BC-11CF-9B2B-00AA00573819")]
[GuidAttribute("5EFC7974-14BC-11CF-9B2B-00AA00573819")]
public interface SOleComponentUIManager

备注

为 OLE 就地激活的扩展, SOleComponentUIManager 允许 Vspackage 无缝集成菜单、工具栏和命令与环境和运行,而不必参与标准 OLE 菜单合并。而以前,最内层的就地活动对象并仅最外面的容器可以处理命令, SOleComponentUIManager 服务启用处理输入的三个命令级别:

  • 环境控件的宿主帧

  • 在主框架中包含的 VSPackage 元素

  • 在元素中嵌入一就地对象。

SOleComponentUIManager 允许 VSPackage 元素显示消息、显示上下文菜单和访问状态栏功能。

SOleComponentUIManager 服务是免费于 SVsUIShell,并且,它们通常是使用的两个。但是, SOleComponentUIManager 不特定于与环境的宿主独立服务。

请参见

参考

Microsoft.VisualStudio.Shell.Interop 命名空间