IVsRunningDocTableEvents4::OnAfterLastDocumentUnlock Method (IVsHierarchy^, UInt32, String^, Int32)
Visual Studio 2015
Fired after the last document in the Running Document Table (RDT) is unlocked.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int OnAfterLastDocumentUnlock( IVsHierarchy^ pHier, unsigned int itemid, String^ pszMkDocument, int fClosedWithoutSaving )
Parameters
- pHier
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^
[in] The IVsHierarchy object that owns the document about to be locked.
- itemid
-
Type:
System::UInt32
[in] The item ID in the hierarchy. This is a unique identifier or it can be one of the following values: VSITEMID_NIL, VSITEMID_ROOT, or VSITEMID_SELECTION.
- pszMkDocument
-
Type:
System::String^
[in] The path to the document about to be locked.
- fClosedWithoutSaving
-
Type:
System::Int32
[in] true if the document was closed without saving; otherwise false.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell80.idl:
[C++]
HRESULT OnAfterLastDocumentUnlock(
[in] IVsHierarchy* pHier,
[in] VSITEMID itemid,
[in] LPCOLESTR pszMkDocument,
[in] BOOL fClosedWithoutSaving
);
Show: