Partilhar via


Método IVsDebugger.AdviseDebuggerEvents (IVsDebuggerEvents, UInt32)

 

Usado por um cliente para obter eventos de notificação do depurador.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (em Microsoft.VisualStudio.Shell.Interop.dll)

Sintaxe

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

Parâmetros

  • pSink
    [in] Ponteiro para uma IVsDebuggerEvents interface para receber notificações de evento.
  • pdwCookie
    [out] Cookie retornada para identificar esta interface de coletor específico.Cliente precisa salvar o cookie e usá-lo na chamada para UnadviseDebuggerEvents.

Valor de retorno

Type: System.Int32

Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

COM assinatura

De vsshell.idl:

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

Consulte também

Interface IVsDebugger
Namespace Microsoft.VisualStudio.Shell.Interop

Retornar ao topo