IVsProvideUserContext 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供选择容器中的项的上下文。
public interface class IVsProvideUserContext
public interface class IVsProvideUserContext
__interface IVsProvideUserContext
[System.Runtime.InteropServices.Guid("997D7904-D948-4C8B-8BAB-0BDA1E212F6E")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsProvideUserContext
[<System.Runtime.InteropServices.Guid("997D7904-D948-4C8B-8BAB-0BDA1E212F6E")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsProvideUserContext = interface
Public Interface IVsProvideUserContext
- 派生
- 属性
注解
如果要使用接口将选择推送到 " 属性 " 窗口 IVsTrackSelectionEx ,并且想要提供所选项的上下文,则所选项目需要实现 IVsProvideUserContext 接口。 例如,使用 IVsProvideUserContext 为任务列表中的项或设计器上的按钮提供上下文。
请参阅示例 数据编辑中的 "实现" 和/或 "调用此接口" 的插图。
实施者说明
在选择容器上实现此接口可提供上下文。
方法
| GetUserContext(IVsUserContext) |
向环境通知所选内容的上下文。 |