IVsChangeTrackingUndoManager.AdviseTrackingClient Method

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)

Syntax

声明
Function AdviseTrackingClient ( _
    pUndoTrackingEvents As IVsUndoTrackingEvents _
) As Integer
用法
Dim instance As IVsChangeTrackingUndoManager
Dim pUndoTrackingEvents As IVsUndoTrackingEvents
Dim returnValue As Integer

returnValue = instance.AdviseTrackingClient(pUndoTrackingEvents)
int AdviseTrackingClient(
    IVsUndoTrackingEvents pUndoTrackingEvents
)
int AdviseTrackingClient(
    [InAttribute] IVsUndoTrackingEvents^ pUndoTrackingEvents
)
abstract AdviseTrackingClient : 
        pUndoTrackingEvents:IVsUndoTrackingEvents -> int 
function AdviseTrackingClient(
    pUndoTrackingEvents : IVsUndoTrackingEvents
) : int

Parameters

Return Value

Type: System.Int32
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.

备注

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

.NET Framework Security

See Also

Reference

IVsChangeTrackingUndoManager Interface

IVsChangeTrackingUndoManager Members

Microsoft.VisualStudio.TextManager.Interop Namespace