Partager via


IEditable<TEditor>.AsEditable(IEditBatch) Method

Definition

Gets an interface with methods for requesting changes to the underlying IEditable<TEditor> object.

public TEditor AsEditable (Microsoft.VisualStudio.Extensibility.Editor.IEditBatch batch);
abstract member AsEditable : Microsoft.VisualStudio.Extensibility.Editor.IEditBatch -> 'Editor
Public Function AsEditable (batch As IEditBatch) As TEditor

Parameters

batch
IEditBatch

A batch of edits created within a call to EditorExtensibility.EditAsync(System.Action<IEditBatch>, System.Threading.CancellationToken).

Returns

TEditor

An object that performs edits on the IEditable<TEditor> object.

Remarks

This method and the value it returns is only supported within the Action<T> accepted by EditorExtensibility.EditAsync(System.Action<IEditBatch>, System.Threading.CancellationToken). After it returns, the returned object is no longer valid.

Applies to