IVsRunningDocumentTable.UnlockDocument(UInt32, UInt32) Method

Definition

Releases a read or edit lock on the open document.

C++/CX
public:
 int UnlockDocument(unsigned int grfRDTLockType, unsigned int dwCookie);

Parameters

grfRDTLockType
UInt32

[in] Values are taken from the _VSRDTFLAGS enumeration. Use the RDT_RequestUnlock flag with this method to indicate what should happen if this is the last unlock, because the last unlock will cause the document to be saved.

dwCookie
UInt32

[in] Abstract value representing the open document for which the read or edit lock is to be released.

Returns

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

Remarks

This method must be accessed on the main thread.

Applies to

製品 バージョン
Visual Studio SDK 2015, 2017, 2019, 2022