다음을 통해 공유


IVsRunningDocumentTable.AdviseRunningDocTableEvents Method

Definition

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

public:
 int AdviseRunningDocTableEvents(Microsoft::VisualStudio::Shell::Interop::IVsRunningDocTableEvents ^ pSink, [Runtime::InteropServices::Out] System::UInt32 % pdwCookie);
int AdviseRunningDocTableEvents(Microsoft::VisualStudio::Shell::Interop::IVsRunningDocTableEvents const & pSink, [Runtime::InteropServices::Out] unsigned int & pdwCookie);
public int AdviseRunningDocTableEvents (Microsoft.VisualStudio.Shell.Interop.IVsRunningDocTableEvents pSink, out uint pdwCookie);
abstract member AdviseRunningDocTableEvents : Microsoft.VisualStudio.Shell.Interop.IVsRunningDocTableEvents * uint32 -> int
Public Function AdviseRunningDocTableEvents (pSink As IVsRunningDocTableEvents, ByRef pdwCookie As UInteger) As Integer

Parameters

pSink
IVsRunningDocTableEvents

[in] The IVsRunningDocTableEvents interface that receives the event notifications.

pdwCookie
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(UInt32) method.

Returns

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

Remarks

This method is safe to access from any thread.

Applies to