IVsInfoBarUIElement::Advise Method (IVsInfoBarUIEvents^, UInt32)

Visual Studio 2015
 

Subscribes to UI events for the InfoBar.

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

int Advise(
	IVsInfoBarUIEvents^ eventSink,
	[OutAttribute] unsigned int% cookie
)

Parameters

eventSink
Type: Microsoft.VisualStudio.Shell.Interop::IVsInfoBarUIEvents^

The events to subscribe to.

cookie
Type: System::UInt32

The listener cookie.

Return Value

Type: System::Int32

S_OK if the operation succeeded, otherwise an error code.

Return to top
Show: