ITextUndoHistoryRegistry.TryGetHistory(Object, ITextUndoHistory) 方法

定义

获取与上下文关联的历史记录,但不创建新的历史记录。

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

参数

context
Object

任意上下文对象。

history
ITextUndoHistory

ITextUndoHistory与上下文对象关联的。

返回

Boolean

如果 ITextUndoHistory 此注册表中存在相关项,则为 true; 否则为false

适用于