IVsPersistDocData Interface
Visual Studio 2005
Enables persistence functionality for document data managed by the text buffer.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)
[GuidAttribute("D5D49C61-1C0B-4EA1-9ADB-A79FB1DBC7B5")] [InterfaceTypeAttribute(1)] public interface IVsPersistDocData
/** @attribute GuidAttribute("D5D49C61-1C0B-4EA1-9ADB-A79FB1DBC7B5") */
/** @attribute InterfaceTypeAttribute(1) */
public interface IVsPersistDocData
GuidAttribute("D5D49C61-1C0B-4EA1-9ADB-A79FB1DBC7B5") InterfaceTypeAttribute(1) public interface IVsPersistDocData
The environment's implementation of the DTE automation Document Object calls the following methods of IVsPersistDocData2:
IsDocDataReadOnly in get_ReadOnly property.
IsDocDataDirty in get_Saved property.
SetDocDataDirty in put_Saved property.
SetDocDataReadOnly in put_ReadOnly property.
GetGuidEditorType in get_Kind.
If your document persists to disk, the environment will also call ReloadDocData. See illustrations of the implementation and/or calling of this interface in the samples Basic Edit Sample and Basic Project Sample.
Implementation
Implement IVsPersistDocData in collaboration with the text buffer when needing to persist document data.