Running Doc Table Events3.On After Save(UInt32) Method
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 a document in the Running Document Table (RDT) is saved.
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
[in] Abstract value representing the document whose attributes have been changed.
If 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. To do this:
Query the SVsSolution service to get an IVsSolution interface.
Obtain the IVsSolution2 interface from the IVsSolution interface
Next, call the AdviseSolutionEvents method to pass in your implementation of the IVsSolutionEvents3.
HRESULT IVsRunningDocTableEvents3::OnAfterSave( [in] VSCOOKIE docCookie );