DocData Members
Include Protected Members
Include Inherited Members
When overridden in a derived class, represents a document in memory.
The DocData type exposes the following members.
Constructors
Name
Description
Initializes a new instance of the DocData class.
Top
Methods
Name
Description
Verifies whether the user can cancel the save operation.
Closes the document.
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Not currently implemented.
Releases the unmanaged resources used by the DocData and optionally releases the managed resources.
Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Notifies clients that one or more documents changed.
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Clears the UndoManager.
Gets the GUID of the editor factory that created the document.
Gets the file name of the document.
Gets the document data from a buffer.
Gets the list of supported document formats.
Gets the GUID of the editor factory that created the IVsPersistDocData object.
Serves as a hash function for a particular type. (Inherited from Object.)
Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Gets the type of the current instance. (Inherited from Object.)
Manages any exceptions that were thrown when the document was loading.
Manages any exceptions that were thrown when the document was saving.
Determines whether changes to the document should be ignored.
Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Initializes the document.
Verifies whether the document changed after the most recent save operation.
Verifies whether the document changed after the most recent save operation.
Verifies whether the document is read-only.
Verifies whether the document can be reloaded.
Overloaded. Loads the document into memory.
Overloaded. Loads the document by using its file name.
Overloaded.
Alerts listeners that the document was closed.
Alerts listeners that the document will be closed.
Alerts listeners that the document is loaded.
Alerts listeners that the document will be loaded.
Alerts listeners that the read-only state of the document has changed.
Alerts listeners that the document has been reloaded.
Alerts listeners that the document will be reloaded.
Alerts listeners that the document has been saved.
Alerts listeners that the document will be saved.
Alerts listeners that the file name of the document has changed.
Alerts listeners that the Item ID that is assigned to the document has changed.
Assigns the document to a cookie and project hierarchy.
Opens a specific view for the document.
Overloaded. Alerts listeners that a document is about to be edited.
Overloaded. Alerts listeners that a file is about to be saved.
Reloads the document.
Reloads the document.
Renames a document and resets its position in the hierarchy.
Resumes the distribution of document-change notifications for the document.
Overloaded. Saves the document.
Alerts listeners that the document has been saved.
Saves the document to a specific location.
Sets the document to a buffer.
Sets the document's IsDirty flag.
Sets the document's read-only flag.
Initializes or changes the file name for the document.
Initializes or changes the project hierarchy for the document.
Currently not implemented.
Shows a dialog box from which the user can specify additional options for save formats.
Suspends the distribution of document-change notifications for the document.
Returns a string that represents the current object. (Inherited from Object.)
Top
Properties
Name
Description
Gets the cookie that identifies the document in the Running Documents table.
Gets the collection of document views that are open for the document.
Gets or sets the encoding that persists the document.
Gets the file name of the document.
Gets a list of formats.
Gets the project hierarchy to which the document belongs.
Gets the document and verifies whether it is loaded.
Gets the Item ID that is assigned to the document.
Gets the service provider from the shell.
Gets the UndoManager interface for the document.
Gets the document and verifies whether more than one document is sharing the same UndoManager interface.
Gets the UndoManager interface.
Top
Events
Name
Description
Occurs after the document is closed.
Occurs before the document is closed.
Occurs after the document has been loaded in the modeling window.
Occurs before the document is loaded in the modeling window.
Occurs when the read-only flag for the document changes.
Occurs after the document is reloaded.
Occurs before the document is reloaded.
Occurs after the document is saved.
Occurs before the document is saved.
Occurs when the document's file name changes.
Occurs when the document's hierarchy or Item ID changes.
Top
Explicit Interface Implementations
Name
Description
Releases all resources used by the current instance of the DocData class.
IVsFileBackup.IsBackupFileObsolete
Top