IVsRunningDocTableEvents3.OnBeforeSave Method
Called before saving a document.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function OnBeforeSave ( _
docCookie As UInteger _
) As Integer
int OnBeforeSave(
uint docCookie
)
int OnBeforeSave(
[InAttribute] unsigned int docCookie
)
abstract OnBeforeSave :
docCookie:uint32 -> int
function OnBeforeSave(
docCookie : uint
) : int
Parameters
docCookie
Type: UInt32[in] Abstract value representing the document about to be 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 IVsRunningDocTableEvents3::OnBeforeSave(
[in] VSCOOKIE docCookie
);
This method is called just before a document is saved.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.