Partilhar via


IVsRunningDocumentTable2 Interface

Definition

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

public interface class IVsRunningDocumentTable2
public interface class IVsRunningDocumentTable2
__interface IVsRunningDocumentTable2
[System.Runtime.InteropServices.Guid("CD68D3CF-7124-4D3A-AFED-3E305C2B7D0B")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsRunningDocumentTable2
[<System.Runtime.InteropServices.Guid("CD68D3CF-7124-4D3A-AFED-3E305C2B7D0B")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsRunningDocumentTable2 = interface
Public Interface IVsRunningDocumentTable2
Attributes

Remarks

Some members of this interface are safe to access from any thread.

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(Guid, Guid, IntPtr) method on a site provider with the service ID IVsRunningDocumentTable and the interface GUID of the IVsRunningDocumentTable interface.

Methods

CloseDocuments(UInt32, IVsHierarchy, UInt32)

Closes one or more documents.

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

FindOrRegisterAndLockDocument(UInt32, String, IVsHierarchy, UInt32, IntPtr, IVsHierarchy, UInt32, IntPtr, UInt32)

Adds a lock to a registered or unregistered document.

QueryCloseRunningDocument(String, Int32)

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

Applies to