InfoBarModel Constructor (IEnumerable<IVsInfoBarTextSpan^>^, IEnumerable<IVsInfoBarActionItem^>^, ImageMoniker, Boolean)

Visual Studio 2015
 

Initializes a new instance of InfoBarModel.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
InfoBarModel(
	IEnumerable<IVsInfoBarTextSpan^>^ textSpans,
	IEnumerable<IVsInfoBarActionItem^>^ actionItems,
	ImageMoniker image = null,
	bool isCloseButtonVisible = true
)

Parameters

textSpans
Type: System.Collections.Generic::IEnumerable<IVsInfoBarTextSpan^>^

The message to display.

actionItems
Type: System.Collections.Generic::IEnumerable<IVsInfoBarActionItem^>^

The buttons or links to display on the panel, separate from the message.

image
Type: Microsoft.VisualStudio.Imaging.Interop::ImageMoniker

The image to display next to the message.

isCloseButtonVisible
Type: System::Boolean

True if the info bar can be closed by the user, otherwise false.

Return to top
Show: