共用方式為


IVsPersistDocData2 Members

Include Protected Members
Include Inherited Members

Enables persistence functionality for document data managed by the text buffer.

The IVsPersistDocData2 type exposes the following members.

Methods

  Name Description
Public method Close Closes the IVsPersistDocData object. (Inherited from IVsPersistDocData.)
Public method GetGuidEditorType Returns the unique identifier of the editor factory that created the IVsPersistDocData object. (Inherited from IVsPersistDocData.)
Public method IsDocDataDirty Determines whether the document data has changed since the last save. (Inherited from IVsPersistDocData.)
Public method IsDocDataReadOnly Determines whether the document data is read-only.
Public method IsDocDataReloadable Determines whether the document data can be reloaded. (Inherited from IVsPersistDocData.)
Public method LoadDocData Loads the document data from a given MkDocument. (Inherited from IVsPersistDocData.)
Public method OnRegisterDocData Called by the Running Document Table (RDT) when it registers the document data in the RDT. (Inherited from IVsPersistDocData.)
Public method ReloadDocData Reloads the document data and in the process determines whether to ignore a subsequent file change. (Inherited from IVsPersistDocData.)
Public method RenameDocData Renames the document data. (Inherited from IVsPersistDocData.)
Public method SaveDocData Saves the document data. (Inherited from IVsPersistDocData.)
Public method SetDocDataDirty Sets the IsDirty flag to true.
Public method SetDocDataReadOnly Sets the Read-Only flag to true.
Public method SetUntitledDocPath Sets the initial name (or path) for unsaved, newly created document data. (Inherited from IVsPersistDocData.)

Top

See Also

Reference

IVsPersistDocData2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace