Freigeben über


IVsRunningDocTableEvents2.OnAfterSave(UInt32) Method

Definition

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:

  1. Query the SVsSolution service to get an IVsSolution interface.

  2. Obtain the IVsSolution2 interface from the IVsSolution interface

  3. Next, call the AdviseSolutionEvents to pass in your implementation of the IVsSolutionEvents3.

COM Signature

From vsshell.idl:

HRESULT IVsRunningDocTableEvents2::OnAfterSave(  
   [in] VSCOOKIE docCookie  
);  

Applies to