SolutionEditor.GetDocumentEditorAsync(DocumentId, CancellationToken) 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 the DocumentEditor for the corresponding DocumentId.
public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Editing.DocumentEditor> GetDocumentEditorAsync (Microsoft.CodeAnalysis.DocumentId id, System.Threading.CancellationToken cancellationToken = default);
member this.GetDocumentEditorAsync : Microsoft.CodeAnalysis.DocumentId * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Editing.DocumentEditor>
Public Function GetDocumentEditorAsync (id As DocumentId, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DocumentEditor)
Parameters
- id
- DocumentId
- cancellationToken
- CancellationToken