IVsRunningDocumentTable2 Interface

 

Represents the running document table (RDT) and provides additional functionality beyond the IVsRunningDocumentTable interface.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

[GuidAttribute("CD68D3CF-7124-4D3A-AFED-3E305C2B7D0B")]
[InterfaceTypeAttribute(1)]
public interface IVsRunningDocumentTable2

NameDescription
System_CAPS_pubmethodCloseDocuments(UInt32, IVsHierarchy, UInt32)

Closes one or more documents.

System_CAPS_pubmethodFindAndLockDocumentEx(UInt32, String, IVsHierarchy, UInt32, IVsHierarchy, UInt32, IntPtr, UInt32)

Locates a document in the RDT using the document file name, then obtains a read or edit lock on that document.

System_CAPS_pubmethodFindOrRegisterAndLockDocument(UInt32, String, IVsHierarchy, UInt32, IntPtr, IVsHierarchy, UInt32, IntPtr, UInt32)

Adds a lock to a registered or unregistered document.

System_CAPS_pubmethodQueryCloseRunningDocument(String, Int32)

Closes the specified document, with possible confirmation, if it is open in an incompatible editor.

This interface provides the ability for a package to close documents.

Notes to Implementers:

This interface is implemented by the environment.

Notes to Callers:

Obtain this interface from the IVsRunningDocumentTable interface, that in turn is obtained by calling the QueryService method on a site provider with the service ID IVsRunningDocumentTable and the interface GUID of the IVsRunningDocumentTable interface.

Return to top
Show: