CurrentSelectionPusher(IServiceProvider, ISelectionContainer) 构造函数

定义

创建组件。

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 实现,以允许此类与窗口的其他选择容器共享。

适用于