Freigeben über


ITextUndoHistoryRegistry.AttachHistory-Methode

Fügt der vorhandenen ITextUndoHistory zu einem Textpuffer an. Der Puffer darf nicht in der Registrierung bereits zugeordnet sind.

Namespace:  Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

Syntax

'Declaration
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
)

Parameter

  • context
    Typ: Object

    Dieses Objekt muss ITextBufferenthalten sein.

Hinweise

Nur ein schwacher Verweis auf den Puffer angehalten.

.NET Framework-Sicherheit

Siehe auch

Referenz

ITextUndoHistoryRegistry Schnittstelle

Microsoft.VisualStudio.Text.Operations-Namespace