IOleInPlaceComponentUIManager 接口

启用现有的 VSPackage 对象菜单、工具栏和命令集成到和管理通过环境的 SOleComponentUIManager 服务。

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

语法

声明
<GuidAttribute("5EFC7973-14BC-11CF-9B2B-00AA00573819")> _
<InterfaceTypeAttribute()> _
Public Interface IOleInPlaceComponentUIManager
[GuidAttribute("5EFC7973-14BC-11CF-9B2B-00AA00573819")]
[InterfaceTypeAttribute()]
public interface IOleInPlaceComponentUIManager

IOleInPlaceComponentUIManager 类型公开以下成员。

方法

  名称 说明
公共方法 FContinueIdle 查询该环境以确定就地活动对象是否可以继续空闲时间处理。
公共方法 FOnUIComponentExitState 查询该环境以确定就地 VSPackage 对象是否处于特定状态保持。
公共方法 FUIComponentInState 查询该环境确定特定状态是否仍然有效。
公共方法 OnUIComponentEnterState 通知环境的就地 VSPackage 对象进入了一个新的状态。
公共方法 SetActiveUI 允许 UI 有效的 VSPackage 对象更改显示代表它由环境的菜单、工具栏或命令。
公共方法 UIActivateForMe 请求 SOleComponentUIManager 服务参与一就地 VSPackage 对象的激活或停用。
公共方法 UpdateUI 通知环境的就地 VSPackage 对象的可见用户界面的状态发生了变化。

页首

备注

IOleInPlaceComponentUIManager 是此服务提供的两个接口之一,其他是 IOleComponentUIManager。启用现有的 VSPackage 对象菜单、工具栏和命令集成到和管理通过环境的 SOleComponentUIManager 服务。IOleInPlaceComponentUIManager 是此服务提供的两个接口之一,其他是 IOleComponentUIManager

就地典型 VSPackage 对象访问 IOleInPlaceComponentUIManager 通过调用 QueryService 和请求在其就地站点的 SIID_SOleComponentUIManager。子组件通常将此调用 IServiceProvider 在其站点的实现。

请参见实现和/或调用的插图在示例 Basic Edit SampleSolution Extender的此接口。

对实现者的说明

作为其 SOleComponentUIManager 服务的一部分,环境实现 IOleInPlaceComponentUIManager

对调用者的说明

就地 VSPackage 对象调用 IOleInPlaceComponentUIManager 方法请求使用 SOleComponentUIManager 服务和传达状态信息。

请参见

参考

Microsoft.VisualStudio.Shell.Interop 命名空间