IEditable<TEditor>.AsEditable(IEditBatch) 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 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
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.