IVsPersistDocData3::HandsOffDocDataStorage Method ()

 

Tells the data document (object implementing IVsPersistDocData) to release any hold it has on its storage (i.e. release any file system locks on its file).

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

int HandsOffDocDataStorage()

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

After a call to HandsOffDocDataStorage the document is either closed (by reloading a changed project or solution file), or reloaded by calling ReloadDocData or ReloadItem.

If the data document hasn't been modified, HandsOnDocDataStorage will be called.

Most calls to the data document are expected to fail when the object is in hands off mode. The only methods expected to work are IsDocDataReloadable and IsDocDataDirty.

From vsshell80.idl:

HRESULT IVsPersistDocData3::HandsOffDocDataStorage();
Return to top
Show: