次の方法で共有


ITextUndoHistoryRegistry.RegisterHistory(Object) Method

Definition

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.

Applies to