ITextUndoHistoryRegistry.TryGetHistory(Object, ITextUndoHistory) ITextUndoHistoryRegistry.TryGetHistory(Object, ITextUndoHistory) ITextUndoHistoryRegistry.TryGetHistory(Object, ITextUndoHistory) ITextUndoHistoryRegistry.TryGetHistory(Object, ITextUndoHistory) ITextUndoHistoryRegistry.TryGetHistory(Object, ITextUndoHistory) ITextUndoHistoryRegistry.TryGetHistory(Object, ITextUndoHistory) Method

Definition

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(Platform::Object ^ context, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Text::Operations::ITextUndoHistory ^ &  history);
bool TryGetHistory(winrt::Windows::Foundation::IInspectable const & context, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Text::Operations::ITextUndoHistory const & & history);
public bool TryGetHistory (object context, out Microsoft.VisualStudio.Text.Operations.ITextUndoHistory history);
abstract member TryGetHistory : obj *  -> bool
Public Function TryGetHistory (context As Object, ByRef history As ITextUndoHistory) As Boolean
Parameters
context
Object Object Object Object Object Object

An arbitrary context object.

Returns

true if a relevant ITextUndoHistory exists in this registry, otherwise false.

Applies to