ITextUndoHistoryRegistry.TryGetHistory(Object, ITextUndoHistory) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a history associated with the context, but does not create a new one.
public:
bool TryGetHistory(System::Object ^ context, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Text::Operations::ITextUndoHistory ^ % history);
public bool TryGetHistory (object context, out Microsoft.VisualStudio.Text.Operations.ITextUndoHistory history);
abstract member TryGetHistory : obj * ITextUndoHistory -> bool
Public Function TryGetHistory (context As Object, ByRef history As ITextUndoHistory) As Boolean
Parameters
- context
- Object
An arbitrary context object.
- history
- ITextUndoHistory
An ITextUndoHistory associated with the context object.
Returns
true
if a relevant ITextUndoHistory exists in this registry, otherwise false
.