IVsRunningDocTableEvents3::OnBeforeSave Method (UInt32)

 

Called before saving a document.

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

int OnBeforeSave(
	unsigned int docCookie
)

Parameters

docCookie
Type: System::UInt32

[in] Abstract value representing the document about to be saved..

Return Value

Type: System::Int32

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

From vsshell.idl:

HRESULT IVsRunningDocTableEvents3::OnBeforeSave(
   [in] VSCOOKIE docCookie
);

This method is called just before a document is saved.

Return to top
Show: