Freigeben über


IVsChangeTrackingUndoManager.AdviseTrackingClient Method

Definition

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

public:
 int AdviseTrackingClient(Microsoft::VisualStudio::TextManager::Interop::IVsUndoTrackingEvents ^ pUndoTrackingEvents);
public:
 int AdviseTrackingClient(Microsoft::VisualStudio::TextManager::Interop::IVsUndoTrackingEvents ^ pUndoTrackingEvents);
int AdviseTrackingClient(Microsoft::VisualStudio::TextManager::Interop::IVsUndoTrackingEvents const & pUndoTrackingEvents);
public int AdviseTrackingClient (Microsoft.VisualStudio.TextManager.Interop.IVsUndoTrackingEvents pUndoTrackingEvents);
abstract member AdviseTrackingClient : Microsoft.VisualStudio.TextManager.Interop.IVsUndoTrackingEvents -> int
Public Function AdviseTrackingClient (pUndoTrackingEvents As IVsUndoTrackingEvents) As Integer

Parameters

pUndoTrackingEvents
IVsUndoTrackingEvents

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

Returns

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

Remarks

COM Signature

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.

Note

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

Applies to