Export (0) Print
Expand All

IVsPersistDocData2 Interface

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)

'Declaration
<InterfaceTypeAttribute(1)> _
<GuidAttribute("9D71890D-090C-4B67-80C3-4CB55C600B60")> _
Public Interface IVsPersistDocData2
	Inherits IVsPersistDocData
'Usage
Dim instance As IVsPersistDocData2

/** @attribute InterfaceTypeAttribute(1) */ 
/** @attribute GuidAttribute("9D71890D-090C-4B67-80C3-4CB55C600B60") */ 
public interface IVsPersistDocData2 extends IVsPersistDocData
InterfaceTypeAttribute(1) 
GuidAttribute("9D71890D-090C-4B67-80C3-4CB55C600B60") 
public interface IVsPersistDocData2 extends 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.

Notes to Implementers Implement IVsPersistDocData2 in collaboration with the text buffer when needing to persist document data.

Community Additions

ADD
Show:
© 2014 Microsoft