IVsInfoBarUIElement.Advise(IVsInfoBarUIEvents, UInt32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Subscribes to UI events for the InfoBar.
public:
int Advise(Microsoft::VisualStudio::Shell::Interop::IVsInfoBarUIEvents ^ eventSink, [Runtime::InteropServices::Out] System::UInt32 % cookie);
public int Advise (Microsoft.VisualStudio.Shell.Interop.IVsInfoBarUIEvents eventSink, out uint cookie);
abstract member Advise : Microsoft.VisualStudio.Shell.Interop.IVsInfoBarUIEvents * uint32 -> int
Public Function Advise (eventSink As IVsInfoBarUIEvents, ByRef cookie As UInteger) As Integer
Parameters
- eventSink
- IVsInfoBarUIEvents
The events to subscribe to.
- cookie
- UInt32
The listener cookie.
Returns
S_OK if the operation succeeded, otherwise an error code.