共用方式為


IVsChangeTrackingUndoManager.UnadviseTrackingClient Method

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

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

Syntax

'宣告
Function UnadviseTrackingClient As Integer
'用途
Dim instance As IVsChangeTrackingUndoManager
Dim returnValue As Integer

returnValue = instance.UnadviseTrackingClient()
int UnadviseTrackingClient()
int UnadviseTrackingClient()
abstract UnadviseTrackingClient : unit -> int 
function UnadviseTrackingClient() : int

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::UnadviseTrackingClient();

UnadviseTrackingClient tells the Undo Manager that undo notification is no longer wanted.

注意

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