Partager via


RunningDocumentTable Members

Include Protected Members
Include Inherited Members

Provides access to the Running Document Table (RDT) that tracks all currently opened documents in Visual Studio.

The RunningDocumentTable type exposes the following members.

Constructors

  Name Description
Public method RunningDocumentTable Initializes a new instance of the RunningDocumentTable class.

Top

Methods

  Name Description
Public method Advise Enables the client to receive events about changes to the Running Document Table (RDT).
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method FindDocument(String) Gets an object from the Running Document Table (RDT) that represents the document specified by the given path.
Public method FindDocument(String, UInt32%) Gets a cookie from the Running Document Table (RDT) that represents the document specified by the given path.
Public method FindDocument(String, IVsHierarchy%, UInt32%, UInt32%) Gets an object, cookie, and owning project type from the Running Document Table (RDT) for the document specified by the given path.
Public method GetDocumentInfo Gets information about a document registered in the Running Document Table, given the identifier of the document.
Public method GetEnumerator Gets an enumerator of the documents in the Running Document Table.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetHierarchyItem Gets the project that owns the specified document.
Public method GetRunningDocumentContents(String) Uses the Running Document Table (RDT) to obtain the contents of a document given the path to the document.
Public method GetRunningDocumentContents(UInt32) Uses the Running Document Table (RDT) to obtain the contents of a document given the path to the document.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method LockDocument Gets a read or edit lock on the specified document.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method RegisterAndLockDocument Creates an entry in the running document table when a document is created or opened.
Public method RenameDocument Renames a document and optionally gives ownership of the document to the specified project.
Public method SaveFileIfDirty Saves the specified file if it has changed since the last save.
Public method ToString Returns a String that represents the current Object. (Inherited from Object.)
Public method Unadvise Indicates the client is no longer interested in receiving Running Document Table (RDT) events.
Public method UnlockDocument Releases a read or edit lock on the open document.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Enumerates the documents in the Running Document Table.

Top

See Also

Reference

RunningDocumentTable Class

Microsoft.VisualStudio.Shell Namespace