Compartilhar via


IVsRunningDocumentTable.AdviseRunningDocTableEvents Method

Enables the client to receive notifications of changes to the Running Document Table (RDT).

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

Syntax

'Declaration
Function AdviseRunningDocTableEvents ( _
    pSink As IVsRunningDocTableEvents, _
    <OutAttribute> ByRef pdwCookie As UInteger _
) As Integer
int AdviseRunningDocTableEvents(
    IVsRunningDocTableEvents pSink,
    out uint pdwCookie
)
int AdviseRunningDocTableEvents(
    [InAttribute] IVsRunningDocTableEvents^ pSink, 
    [OutAttribute] unsigned int% pdwCookie
)
abstract AdviseRunningDocTableEvents : 
        pSink:IVsRunningDocTableEvents * 
        pdwCookie:uint32 byref -> int
function AdviseRunningDocTableEvents(
    pSink : IVsRunningDocTableEvents, 
    pdwCookie : uint
) : int

Parameters

  • pdwCookie
    Type: UInt32%

    [out] Returns an abstract value that identifies the client to be advised of RDT events. Use this cookie later in a call to the UnadviseRunningDocTableEvents method.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsRunningDocumentTable::AdviseRunningDocTableEvents(
   [in] IVsRunningDocTableEvents *pSink,
   [out] VSCOOKIE                *pdwCookie
);

The IVsRunningDocTableEvents interface can contain additional interfaces such as IVsRunningDocTableEvents2, IVsRunningDocTableEvents3, and IVsRunningDocTableEvents4 to handle additional events. The environment calls the QueryInterface method on the IVsRunningDocTableEvents interface to obtain the other interfaces.

.NET Framework Security

See Also

Reference

IVsRunningDocumentTable Interface

Microsoft.VisualStudio.Shell.Interop Namespace