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。
history
類型:Microsoft.VisualStudio.Text.Operations.ITextUndoHistoryITextUndoHistory相關於文字緩衝區物件。
備註
弱式參考會保存至緩衝區。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。