ITextUndoHistoryRegistry.TryGetHistory(Object, ITextUndoHistory) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取与上下文关联的历史记录,但不创建新的历史记录。
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与上下文对象关联的。
返回
如果 ITextUndoHistory 此注册表中存在相关项,则为 true; 否则为false。