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)

Syntax

'Declaration
Function HandsOffDocDataStorage As Integer
int HandsOffDocDataStorage()
int HandsOffDocDataStorage()
abstract HandsOffDocDataStorage : unit -> int
function HandsOffDocDataStorage() : int

Return Value

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

Remarks

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.

COM Signature

From vsshell80.idl:

HRESULT IVsPersistDocData3::HandsOffDocDataStorage();

.NET Framework Security

See Also

Reference

IVsPersistDocData3 Interface

Microsoft.VisualStudio.Shell.Interop Namespace