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)

[InterfaceTypeAttribute(1)]
[GuidAttribute("9D71890D-090C-4B67-80C3-4CB55C600B60")]
public interface IVsPersistDocData2 : IVsPersistDocData

NameDescription
System_CAPS_pubmethodClose()

Closes the IVsPersistDocData2 object.

System_CAPS_pubmethodGetGuidEditorType(Guid)

Returns the unique identifier of the editor factory that created the IVsPersistDocData2 object.

System_CAPS_pubmethodIsDocDataDirty(Int32)

Determines whether the document data has changed since the last save.

System_CAPS_pubmethodIsDocDataReadOnly(Int32)

Determines whether the document data is read-only.

System_CAPS_pubmethodIsDocDataReloadable(Int32)

Determines whether the document data can be reloaded.

System_CAPS_pubmethodLoadDocData(String)

Loads the document data from a given MkDocument.

System_CAPS_pubmethodOnRegisterDocData(UInt32, IVsHierarchy, UInt32)

Called by the Running Document Table (RDT) when it registers the document data in the RDT.

System_CAPS_pubmethodReloadDocData(UInt32)

Reloads the document data and in the process determines whether to ignore a subsequent file change.

System_CAPS_pubmethodRenameDocData(UInt32, IVsHierarchy, UInt32, String)

Renames the document data.

System_CAPS_pubmethodSaveDocData(VSSAVEFLAGS, String, Int32)

Saves the document data.

System_CAPS_pubmethodSetDocDataDirty(Int32)

Sets the IsDirty flag to true.

System_CAPS_pubmethodSetDocDataReadOnly(Int32)

Sets the Read-Only flag to true.

System_CAPS_pubmethodSetUntitledDocPath(String)

Sets the initial name (or path) for unsaved, newly created document data.

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.

Notes to Implementers:

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

Return to top
Show: