Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
'Usage
Dim instance As IVsPersistDocData3
Dim returnValue As Integer
returnValue = instance.HandsOffDocDataStorage()
int HandsOffDocDataStorage()
int HandsOffDocDataStorage()
function HandsOffDocDataStorage() : int
Return Value
Type: System.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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.