IVsRunningDocTableEvents.OnAfterSave(UInt32) 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.
Called after saving a document in the Running Document Table (RDT).
public:
int OnAfterSave(System::UInt32 docCookie);
public:
int OnAfterSave(unsigned int docCookie);
int OnAfterSave(unsigned int docCookie);
public int OnAfterSave (uint docCookie);
abstract member OnAfterSave : uint32 -> int
Public Function OnAfterSave (docCookie As UInteger) As Integer
Parameters
- docCookie
- UInt32
[in] Abstract value representing the document that has just been saved.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
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.
COM Signature
From vsshell.idl:
HRESULT IVsRunningDocTableEvents::OnAfterSave(
[in] VSCOOKIE docCookie
);