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: System.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
- 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.