CurrentSelectionPusher(IServiceProvider, ISelectionContainer) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建组件。
public:
CurrentSelectionPusher(IServiceProvider ^ serviceProvider, Microsoft::VisualStudio::Shell::Interop::ISelectionContainer ^ selectionContainer);
public CurrentSelectionPusher (IServiceProvider serviceProvider, Microsoft.VisualStudio.Shell.Interop.ISelectionContainer selectionContainer);
new Microsoft.VisualStudio.Modeling.Shell.CurrentSelectionPusher : IServiceProvider * Microsoft.VisualStudio.Shell.Interop.ISelectionContainer -> Microsoft.VisualStudio.Modeling.Shell.CurrentSelectionPusher
Public Sub New (serviceProvider As IServiceProvider, selectionContainer As ISelectionContainer)
参数
- serviceProvider
- IServiceProvider
通知 Visual Studio 所选内容更改所需的 IServiceProvider
- selectionContainer
- ISelectionContainer
可选的外部 ISelectionContainer 实现,以允许此类与窗口的其他选择容器共享。