ITextUndoHistoryRegistry.AttachHistory 方法

附加现有 ITextUndoHistory 到文本缓冲区。 此注册表不能已映射缓冲区。

命名空间:  Microsoft.VisualStudio.Text.Operations
程序集:  Microsoft.VisualStudio.Text.Logic(在 Microsoft.VisualStudio.Text.Logic.dll 中)

语法

声明
Sub AttachHistory ( _
    context As Object, _
    history As ITextUndoHistory _
)
void AttachHistory(
    Object context,
    ITextUndoHistory history
)
void AttachHistory(
    Object^ context, 
    ITextUndoHistory^ history
)
abstract AttachHistory : 
        context:Object * 
        history:ITextUndoHistory -> unit
function AttachHistory(
    context : Object, 
    history : ITextUndoHistory
)

参数

  • context
    类型:Object

    此对象应始终 ITextBuffer

备注

只弱引用保存到缓冲区。

.NET Framework 安全性

请参阅

参考

ITextUndoHistoryRegistry 接口

Microsoft.VisualStudio.Text.Operations 命名空间