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)


Function AdviseRunningDocTableEvents ( _
    pSink As IVsRunningDocTableEvents, _
    <OutAttribute> ByRef pdwCookie As UInteger _
) As Integer
‘사용 방법
Dim instance As IVsRunningDocumentTable
Dim pSink As IVsRunningDocTableEvents
Dim pdwCookie As UInteger
Dim returnValue As Integer

returnValue = instance.AdviseRunningDocTableEvents(pSink, _
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


Return Value

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


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


IVsRunningDocumentTable Interface

IVsRunningDocumentTable Members

Microsoft.VisualStudio.Shell.Interop Namespace