共用方式為


IVsLinkCapableUndoManager Interface

Manages implicit linked undo capability by calling methods which advise that focus must be put on the owner of the given undo client.

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

Syntax

'宣告
<InterfaceTypeAttribute()> _
<GuidAttribute("F747D466-83CA-41D6-A0E8-3F78283D01E7")> _
Public Interface IVsLinkCapableUndoManager
[InterfaceTypeAttribute()]
[GuidAttribute("F747D466-83CA-41D6-A0E8-3F78283D01E7")]
public interface IVsLinkCapableUndoManager
[InterfaceTypeAttribute()]
[GuidAttribute(L"F747D466-83CA-41D6-A0E8-3F78283D01E7")]
public interface class IVsLinkCapableUndoManager
[<InterfaceTypeAttribute()>]
[<GuidAttribute("F747D466-83CA-41D6-A0E8-3F78283D01E7")>]
type IVsLinkCapableUndoManager =  interface end
public interface IVsLinkCapableUndoManager

The IVsLinkCapableUndoManager type exposes the following members.

Methods

  Name Description
Public method AdviseLinkedUndoClient Specifies that the given client is the linked undo client for this manager.
Public method UnadviseLinkedUndoClient Specifies that there is no linked undo client for this manager.

Top

Remarks

Implicit linked undos will only work for undo managers where AdviseLinkedUndoClient has been called.

注意

These methods do not call AddRef/Release on pClient. Therefore you must call UnadviseLinkedUndoClient before you release your reference to the undo manager.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace