ITextUndoHistoryRegistry.RegisterHistory, méthode

Obtient, et si nécessaire crée, un historique associé au contexte.

Espace de noms :  Microsoft.VisualStudio.Text.Operations
Assembly :  Microsoft.VisualStudio.Text.Logic (dans Microsoft.VisualStudio.Text.Logic.dll)

Syntaxe

'Déclaration
Function RegisterHistory ( _
    context As Object _
) As ITextUndoHistory
ITextUndoHistory RegisterHistory(
    Object context
)
ITextUndoHistory^ RegisterHistory(
    Object^ context
)
abstract RegisterHistory : 
        context:Object -> ITextUndoHistory
function RegisterHistory(
    context : Object
) : ITextUndoHistory

Paramètres

  • context
    Type : Object

    Cet objet doit toujours être ITextBuffer.

Valeur de retour

Type : Microsoft.VisualStudio.Text.Operations.ITextUndoHistory
ITextUndoHistory .

Notes

Uniquement une référence faible est maintenue à la mémoire tampon.

Sécurité .NET Framework

Voir aussi

Référence

ITextUndoHistoryRegistry Interface

Microsoft.VisualStudio.Text.Operations, espace de noms