ITextUndoHistoryRegistry.RegisterHistory Method

Gets, and if necessary creates, a history associated with the context.

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

Syntax

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

Parameters

  • context
    Type: Object

    This object should always be an ITextBuffer.

Return Value

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

Remarks

Only a weak reference is held to the buffer.

.NET Framework Security

See Also

Reference

ITextUndoHistoryRegistry Interface

Microsoft.VisualStudio.Text.Operations Namespace