Compartir a través de


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

'Declaración
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

Remarks

Only a weak reference is held to the buffer.

.NET Framework Security

See Also

Reference

ITextUndoHistoryRegistry Interface

Microsoft.VisualStudio.Text.Operations Namespace