Compartilhar via


IVsRunningDocTableEvents.OnAfterSave(UInt32) Method

Definition

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:

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

  2. Obtain the IVsSolution2 interface from the IVsSolution interface.

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

COM Signature

From vsshell.idl:

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

Applies to