ITextUndoHistoryRegistry.RegisterHistory(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets, and if necessary creates, a history associated with the context.
public:
Microsoft::VisualStudio::Text::Operations::ITextUndoHistory ^ RegisterHistory(System::Object ^ context);
public:
Microsoft::VisualStudio::Text::Operations::ITextUndoHistory ^ RegisterHistory(Platform::Object ^ context);
Microsoft::VisualStudio::Text::Operations::ITextUndoHistory RegisterHistory(winrt::Windows::Foundation::IInspectable const & context);
public Microsoft.VisualStudio.Text.Operations.ITextUndoHistory RegisterHistory (object context);
abstract member RegisterHistory : obj -> Microsoft.VisualStudio.Text.Operations.ITextUndoHistory
Public Function RegisterHistory (context As Object) As ITextUndoHistory
Parameters
- context
- Object
An arbitrary context object.
Returns
A (possibly new) ITextUndoHistory associated with the context object.
Remarks
Only a weak reference is held to the context.