IVsRunningDocTableEvents4.OnAfterLastDocumentUnlock Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Fired after the last document in the Running Document Table (RDT) is unlocked.
public:
int OnAfterLastDocumentUnlock(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, System::UInt32 itemid, System::String ^ pszMkDocument, int fClosedWithoutSaving);
public:
int OnAfterLastDocumentUnlock(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, unsigned int itemid, Platform::String ^ pszMkDocument, int fClosedWithoutSaving);
int OnAfterLastDocumentUnlock(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHier, unsigned int itemid, std::wstring const & pszMkDocument, int fClosedWithoutSaving);
public int OnAfterLastDocumentUnlock (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHier, uint itemid, string pszMkDocument, int fClosedWithoutSaving);
abstract member OnAfterLastDocumentUnlock : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 * string * int -> int
Public Function OnAfterLastDocumentUnlock (pHier As IVsHierarchy, itemid As UInteger, pszMkDocument As String, fClosedWithoutSaving As Integer) As Integer
Parameters
- pHier
- IVsHierarchy
[in] The IVsHierarchy object that owns the document about to be locked.
- itemid
- 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
- String
[in] The path to the document about to be locked.
- fClosedWithoutSaving
- Int32
[in] true
if the document was closed without saving; otherwise false
.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell80.idl:
[C++]
HRESULT OnAfterLastDocumentUnlock(
[in] IVsHierarchy* pHier,
[in] VSITEMID itemid,
[in] LPCOLESTR pszMkDocument,
[in] BOOL fClosedWithoutSaving
);