ITextUndoHistoryRegistry.AttachHistory Method
Attaches an existing ITextUndoHistory to a text buffer. The buffer must not already be mapped in this registry.
Namespace: Microsoft.VisualStudio.Text.Operations
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
'Declaração
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
)
Parameters
- context
Type: System.Object
This object should always be an ITextBuffer.
- history
Type: Microsoft.VisualStudio.Text.Operations.ITextUndoHistory
An ITextUndoHistory object to associate with the text buffer.
Remarks
Only a weak reference is held to the buffer.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.