附加现有 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。
history
类型:Microsoft.VisualStudio.Text.Operations.ITextUndoHistory联合的 ITextUndoHistory 对象与文本缓冲区。
备注
只弱引用保存到缓冲区。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。