IVsRunningDocTableEvents3.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 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
Parameters
- docCookie
- UInt32
[in] Abstract value representing the document whose attributes have been changed.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
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. 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.
COM Signature
From vsshell.idl:
HRESULT IVsRunningDocTableEvents3::OnAfterSave(
[in] VSCOOKIE docCookie
);