Partager via


IEditorHostService.CreateTextViewAsync Method

Definition

Creates a new ITextViewSnapshot from a serializable TextViewContract RPC contract.

public System.Threading.Tasks.Task<Microsoft.VisualStudio.Extensibility.Editor.ITextViewSnapshot> CreateTextViewAsync (Microsoft.VisualStudio.RpcContracts.Editor.TextViewContract textView, System.Threading.CancellationToken cancellationToken);
abstract member CreateTextViewAsync : Microsoft.VisualStudio.RpcContracts.Editor.TextViewContract * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Extensibility.Editor.ITextViewSnapshot>
Public Function CreateTextViewAsync (textView As TextViewContract, cancellationToken As CancellationToken) As Task(Of ITextViewSnapshot)

Parameters

textView
TextViewContract

A serializable TextViewContract RPC contract.

cancellationToken
CancellationToken

Cancels the request.

Returns

An ITextViewSnapshot thick object that can be used to interact with the editor.

Applies to