영어로 읽기

다음을 통해 공유


IVsRunningDocTableEvents2.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)

Syntax

int OnAfterSave(
    uint docCookie
)

Parameters

  • docCookie
    Type: System.UInt32

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

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsRunningDocTableEvents.OnAfterSave(UInt32)

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
);

Permissions

See Also

Reference

IVsRunningDocTableEvents2 Interface

IVsRunningDocTableEvents2 Members

Microsoft.VisualStudio.Shell.Interop Namespace