IVsChangeTrackingUndoManager::AdviseTrackingClient Method (IVsUndoTrackingEvents^)

 

Advises the Undo Manager that you want to receive notification when the document is clean.

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

int AdviseTrackingClient(
	IVsUndoTrackingEvents^ pUndoTrackingEvents
)

Parameters

pUndoTrackingEvents
Type: Microsoft.VisualStudio.TextManager.Interop::IVsUndoTrackingEvents^

[in] Pointer to an undo tracking events object. For more information, see IVsUndoTrackingEvents.

Return Value

Type: System::Int32

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

From textmgr.idl:

HRESULT IVsChangeTrackingUndoManager::AdviseTrackingClient(
   [in] IVsUndoTrackingEvents *pUndoTrackingEvents
);

AdviseTrackingClient tells the Undo Manager to notify the event interface that undo actions have return to an unmodified state.

System_CAPS_noteNote

This method does not call AddRef or Release on pUndoTrackingEvents. Therefore you must call UnadviseTrackingClient before you release your reference to the undo manager.

Return to top
Show: