次の方法で共有


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

'宣言
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, _
    pdwCookie)
int AdviseRunningDocTableEvents(
    IVsRunningDocTableEvents pSink,
    out uint pdwCookie
)
int AdviseRunningDocTableEvents(
    [InAttribute] IVsRunningDocTableEvents^ pSink, 
    [OutAttribute] unsigned int% pdwCookie
)
function AdviseRunningDocTableEvents(
    pSink : IVsRunningDocTableEvents, 
    pdwCookie : uint
) : int

Parameters

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 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.

Permissions

See Also

Reference

IVsRunningDocumentTable Interface

IVsRunningDocumentTable Members

Microsoft.VisualStudio.Shell.Interop Namespace