IVsRunningDocumentTable.NotifyOnBeforeSave(UInt32) Method

Definition

Fires before a document in the RDT is saved.

public:
 int NotifyOnBeforeSave(System::UInt32 dwCookie);
public:
 int NotifyOnBeforeSave(unsigned int dwCookie);
int NotifyOnBeforeSave(unsigned int dwCookie);
public int NotifyOnBeforeSave (uint dwCookie);
abstract member NotifyOnBeforeSave : uint32 -> int
Public Function NotifyOnBeforeSave (dwCookie As UInteger) As Integer

Parameters

dwCookie
UInt32

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

Returns

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

Remarks

COM Signature

From vsshell.idl:

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

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

Applies to