다음을 통해 공유


IVsInfoBarUIElement.Advise(IVsInfoBarUIEvents, UInt32) Method

Definition

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.

Applies to