Freigeben über


ToolWindowPane.OnInfoBarActionItemClicked Method

Definition

Called when an action item on an info bar added via AddInfoBar is clicked. If this method is overridden, the base implementation must be called to raise the InfoBarActionItemClicked event.

protected:
 virtual void OnInfoBarActionItemClicked(Microsoft::VisualStudio::Shell::Interop::IVsInfoBarUIElement ^ infoBarUI, Microsoft::VisualStudio::Shell::Interop::IVsInfoBar ^ infoBar, Microsoft::VisualStudio::Shell::Interop::IVsInfoBarActionItem ^ actionItem);
protected:
 virtual void OnInfoBarActionItemClicked(Microsoft::VisualStudio::Shell::Interop::IVsInfoBarUIElement ^ infoBarUI, Microsoft::VisualStudio::Shell::Interop::IVsInfoBar ^ infoBar, Microsoft::VisualStudio::Shell::Interop::IVsInfoBarActionItem ^ actionItem);
 virtual void OnInfoBarActionItemClicked(Microsoft::VisualStudio::Shell::Interop::IVsInfoBarUIElement const & infoBarUI, Microsoft::VisualStudio::Shell::Interop::IVsInfoBar const & infoBar, Microsoft::VisualStudio::Shell::Interop::IVsInfoBarActionItem const & actionItem);
protected virtual void OnInfoBarActionItemClicked (Microsoft.VisualStudio.Shell.Interop.IVsInfoBarUIElement infoBarUI, Microsoft.VisualStudio.Shell.Interop.IVsInfoBar infoBar, Microsoft.VisualStudio.Shell.Interop.IVsInfoBarActionItem actionItem);
abstract member OnInfoBarActionItemClicked : Microsoft.VisualStudio.Shell.Interop.IVsInfoBarUIElement * Microsoft.VisualStudio.Shell.Interop.IVsInfoBar * Microsoft.VisualStudio.Shell.Interop.IVsInfoBarActionItem -> unit
override this.OnInfoBarActionItemClicked : Microsoft.VisualStudio.Shell.Interop.IVsInfoBarUIElement * Microsoft.VisualStudio.Shell.Interop.IVsInfoBar * Microsoft.VisualStudio.Shell.Interop.IVsInfoBarActionItem -> unit
Protected Overridable Sub OnInfoBarActionItemClicked (infoBarUI As IVsInfoBarUIElement, infoBar As IVsInfoBar, actionItem As IVsInfoBarActionItem)

Parameters

infoBarUI
IVsInfoBarUIElement

The UI element for the info bar that was closed.

infoBar
IVsInfoBar

The info bar model for the info bar that was closed. May be null if an info bar UI element was added without having a known model.

actionItem
IVsInfoBarActionItem

The action item that was clicked on the info bar.

Applies to