ITextUndoHistoryRegistry.AttachHistory(Object, ITextUndoHistory) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将现有的附加 ITextUndoHistory 到新的上下文。 此注册表中不得映射上下文。
public:
void AttachHistory(System::Object ^ context, Microsoft::VisualStudio::Text::Operations::ITextUndoHistory ^ history);
public:
void AttachHistory(Platform::Object ^ context, Microsoft::VisualStudio::Text::Operations::ITextUndoHistory ^ history);
void AttachHistory(winrt::Windows::Foundation::IInspectable const & context, Microsoft::VisualStudio::Text::Operations::ITextUndoHistory const & history);
public void AttachHistory (object context, Microsoft.VisualStudio.Text.Operations.ITextUndoHistory history);
abstract member AttachHistory : obj * Microsoft.VisualStudio.Text.Operations.ITextUndoHistory -> unit
Public Sub AttachHistory (context As Object, history As ITextUndoHistory)
参数
- context
- Object
任意上下文对象。
- history
- ITextUndoHistory
ITextUndoHistory要与上下文关联的对象。
注解
只有弱引用保留在上下文中。