共用方式為


IVsRunningDocumentTable.NotifyOnAfterSave Method

Fires after a document in the RDT has been saved.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function NotifyOnAfterSave ( _
    dwCookie As UInteger _
) As Integer
int NotifyOnAfterSave(
    uint dwCookie
)
int NotifyOnAfterSave(
    [InAttribute] unsigned int dwCookie
)
abstract NotifyOnAfterSave : 
        dwCookie:uint32 -> int
function NotifyOnAfterSave(
    dwCookie : uint
) : int

Parameters

  • dwCookie
    Type: UInt32

    [in] Abstract value representing the document that is saved.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsRunningDocumentTable::NotifyOnAfterSave(
   [in] VSCOOKIE dwCookie
);

The dwCookie parameter is same value that is returned from the FindAndLockDocument or RegisterAndLockDocument methods.

.NET Framework Security

See Also

Reference

IVsRunningDocumentTable Interface

Microsoft.VisualStudio.Shell.Interop Namespace