RunningDocumentTable.Advise(IVsRunningDocTableEvents) RunningDocumentTable.Advise(IVsRunningDocTableEvents) RunningDocumentTable.Advise(IVsRunningDocTableEvents) RunningDocumentTable.Advise(IVsRunningDocTableEvents) RunningDocumentTable.Advise(IVsRunningDocTableEvents) RunningDocumentTable.Advise(IVsRunningDocTableEvents) Method

Definition

Enables the client to receive events about changes to the Running Document Table (RDT).

public:
 System::UInt32 Advise(Microsoft::VisualStudio::Shell::Interop::IVsRunningDocTableEvents ^ sink);
public:
 unsigned int Advise(Microsoft::VisualStudio::Shell::Interop::IVsRunningDocTableEvents ^ sink);
unsigned int Advise(Microsoft::VisualStudio::Shell::Interop::IVsRunningDocTableEvents const & sink);
public uint Advise (Microsoft.VisualStudio.Shell.Interop.IVsRunningDocTableEvents sink);
member this.Advise : Microsoft.VisualStudio.Shell.Interop.IVsRunningDocTableEvents -> uint32
Public Function Advise (sink As IVsRunningDocTableEvents) As UInteger
Parameters
Returns

A cookie associated with the given IVsRunningDocTableEvents object. If an error occurs, this method throws an exception.

Remarks

This method forwards the call to the AdviseRunningDocTableEvents method in the IVsRunningDocumentTable interface. The returned cookie can be passed to the Unadvise method to remove the IVsRunningDocTableEvents object from the list of entities to be notified.

Applies to