Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IVsRunningDocTableEvents3.OnAfterSave Method

Called after a document in the Running Document Table (RDT) is saved.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int OnAfterSave (
	[InAttribute] uint docCookie
)
int OnAfterSave (
	/** @attribute InAttribute() */ UInt32 docCookie
)
function OnAfterSave (
	docCookie : uint
) : int

Parameters

docCookie

[in] Abstract value representing the document whose attributes have been changed.

Return Value

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:

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

  2. Obtain the IVsSolution2 interface from the IVsSolution interface

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

COM Signature

From vsshell.idl:

HRESULT IVsRunningDocTableEvents3::OnAfterSave(
   [in] VSCOOKIE docCookie
);
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.