IVsDebugger.AdviseDebuggerEvents Method

Used by a client to get notification of debugger events.

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

Syntax

'Declaration
Function AdviseDebuggerEvents ( _
    pSink As IVsDebuggerEvents, _
    <OutAttribute> ByRef pdwCookie As UInteger _
) As Integer
'Usage
Dim instance As IVsDebugger 
Dim pSink As IVsDebuggerEvents 
Dim pdwCookie As UInteger 
Dim returnValue As Integer 

returnValue = instance.AdviseDebuggerEvents(pSink, _
    pdwCookie)
int AdviseDebuggerEvents(
    IVsDebuggerEvents pSink,
    out uint pdwCookie
)
int AdviseDebuggerEvents(
    [InAttribute] IVsDebuggerEvents^ pSink, 
    [OutAttribute] unsigned int% pdwCookie
)
function AdviseDebuggerEvents(
    pSink : IVsDebuggerEvents, 
    pdwCookie : uint
) : int

Parameters

  • pdwCookie
    Type: System.UInt32%

    [out] Cookie returned to identify this particular sink interface. Client needs to save the cookie and use it in the call to UnadviseDebuggerEvents.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

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

.NET Framework Security

See Also

Reference

IVsDebugger Interface

IVsDebugger Members

Microsoft.VisualStudio.Shell.Interop Namespace