IVsRunningDocTableEvents Interface
Implements methods that fire in response to changes to documents in the Running Document Table (RDT).
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
<GuidAttribute("BEA6BB4F-A905-49CA-A216-202DF370E07E")> _
<InterfaceTypeAttribute()> _
Public Interface IVsRunningDocTableEvents
[GuidAttribute("BEA6BB4F-A905-49CA-A216-202DF370E07E")]
[InterfaceTypeAttribute()]
public interface IVsRunningDocTableEvents
[GuidAttribute(L"BEA6BB4F-A905-49CA-A216-202DF370E07E")]
[InterfaceTypeAttribute()]
public interface class IVsRunningDocTableEvents
[<GuidAttribute("BEA6BB4F-A905-49CA-A216-202DF370E07E")>]
[<InterfaceTypeAttribute()>]
type IVsRunningDocTableEvents = interface end
public interface IVsRunningDocTableEvents
The IVsRunningDocTableEvents type exposes the following members.
Methods
Name | Description | |
---|---|---|
OnAfterAttributeChange | Called after a change in an attribute of a document in the Running Document Table (RDT). | |
OnAfterDocumentWindowHide | Called after a document window is placed in the Hide state. | |
OnAfterFirstDocumentLock | Called after application of the first lock of the specified type to the specified document in the Running Document Table (RDT). | |
OnAfterSave | Called after saving a document in the Running Document Table (RDT). | |
OnBeforeDocumentWindowShow | Called before displaying a document window. | |
OnBeforeLastDocumentUnlock | Called before releasing the last lock of the specified type on the specified document in the Running Document Table (RDT). |
Top
Remarks
Specify this interface in a call to the AdviseRunningDocTableEvents method of the IVsRunningDocumentTable interface.
The methods use a cookie representing the client requesting notification. You use the cookie in the call to the UnadviseRunningDocTableEvents method when the package no longer wants to listen to RDT events.
Other Interfaces
You may want to implement additional interfaces to get more event information:
To get more information about document renaming, implement the IVsRunningDocTableEvents2 interface.
To get more information before a document is saved, implement the IVsRunningDocTableEvents3 interface.
To receive notification before the first lock on a document is applied (giving you a chance to load the document), implement the IVsRunningDocTableEvents4 interface.
Notes to Implementers
Packages implement this interface to receive events relating to the state of documents in the RDT. The cookie parameter passed to all of the methods in this interface represents the document affected by an event. This cookie is the same value that returned from the FindAndLockDocument or RegisterAndLockDocument methods in the IVsRunningDocumentTable interface.
Notes to Callers
The environment calls this interface when specific events have occurred.