Udostępnij za pośrednictwem


Metoda IVsDebugger.AdviseDebuggerEvents — (IVsDebuggerEvents, UInt32)

 

Używany przez klienta, aby otrzymywać powiadomienia o debugerze zdarzenia.

Przestrzeń nazw:   Microsoft.VisualStudio.Shell.Interop
Zestaw:  Microsoft.VisualStudio.Shell.Interop (w Microsoft.VisualStudio.Shell.Interop.dll)

Składnia

int AdviseDebuggerEvents(
    IVsDebuggerEvents pSink,
    out uint pdwCookie
)
int AdviseDebuggerEvents(
    IVsDebuggerEvents^ pSink,
    [OutAttribute] unsigned int% pdwCookie
)
abstract AdviseDebuggerEvents : 
        pSink:IVsDebuggerEvents *
        pdwCookie:uint32 byref -> int
Function AdviseDebuggerEvents (
    pSink As IVsDebuggerEvents,
    <OutAttribute> ByRef pdwCookie As UInteger
) As Integer

Parametry

  • pSink
    [w] Wskaźnik, aby IVsDebuggerEvents interfejsu, aby otrzymywać powiadomienia o wydarzeniach.
  • pdwCookie
    [out] Plik cookie powrócił do identyfikacji tego interfejsu określonego obiektu sink.Klient musi zapisać plik cookie i użyć go w wywołaniu UnadviseDebuggerEvents.

Wartość zwracana

Type: System.Int32

Jeśli metoda się powiedzie, zwraca S_OK.Jeśli nie powiedzie się, zwraca kod błędu.

Uwagi

Podpis COM

Z vsshell.idl:

HRESULT IVsDebugger::AdviseDebuggerEvents(
   [in] IVsDebuggerEvents *psink,
   [out] VSCOOKIE *pdwCookie
);

Zobacz też

Interfejs IVsDebugger
Przestrzeń nazw Microsoft.VisualStudio.Shell.Interop

Powrót do początku