Partilhar via


IVsPersistDocData3.HandsOffDocDataStorage Method

Definition

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).

public:
 int HandsOffDocDataStorage();
public:
 int HandsOffDocDataStorage();
int HandsOffDocDataStorage();
public int HandsOffDocDataStorage ();
abstract member HandsOffDocDataStorage : unit -> int
Public Function HandsOffDocDataStorage () As Integer

Returns

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();  

Applies to