Partilhar via


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 (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.

Applies to