IVsRunningDocTableEvents::OnAfterSave Method (UInt32)
Visual Studio 2015
Called after saving a document in the Running Document Table (RDT).
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- docCookie
-
Type:
System::UInt32
[in] Abstract value representing the document that has just been saved.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
If you want to know if your project or solution is currently closing after you receive an OnAfterSave notification, you need to monitor events on the IVsSolutionEvents3 interface. Follow these steps:
Query the SVsSolution service to get an IVsSolution interface.
Obtain the IVsSolution2 interface from the IVsSolution interface.
Next, call AdviseSolutionEvents to pass in your implementation of the IVsSolutionEvents3 interface.
From vsshell.idl:
HRESULT IVsRunningDocTableEvents::OnAfterSave(
[in] VSCOOKIE docCookie
);
Show: