FileTextLoader.LoadTextAndVersionAsync Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
LoadTextAndVersionAsync(LoadTextOptions, CancellationToken) |
Carregue um texto e uma versão do documento no workspace. |
LoadTextAndVersionAsync(Workspace, DocumentId, CancellationToken) |
Obsoleto.
Carregue um texto e uma versão do documento no workspace. |
LoadTextAndVersionAsync(LoadTextOptions, CancellationToken)
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
Carregue um texto e uma versão do documento no workspace.
public override System.Threading.Tasks.Task<Microsoft.CodeAnalysis.TextAndVersion> LoadTextAndVersionAsync (Microsoft.CodeAnalysis.LoadTextOptions options, System.Threading.CancellationToken cancellationToken);
override this.LoadTextAndVersionAsync : Microsoft.CodeAnalysis.LoadTextOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.TextAndVersion>
Public Overrides Function LoadTextAndVersionAsync (options As LoadTextOptions, cancellationToken As CancellationToken) As Task(Of TextAndVersion)
Parâmetros
- options
- LoadTextOptions
- cancellationToken
- CancellationToken
Retornos
Exceções
Aplica-se a
LoadTextAndVersionAsync(Workspace, DocumentId, CancellationToken)
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
Cuidado
Use/override LoadTextAndVersionAsync(LoadTextOptions, CancellationToken)
Carregue um texto e uma versão do documento no workspace.
public:
override System::Threading::Tasks::Task<Microsoft::CodeAnalysis::TextAndVersion ^> ^ LoadTextAndVersionAsync(Microsoft::CodeAnalysis::Workspace ^ workspace, Microsoft::CodeAnalysis::DocumentId ^ documentId, System::Threading::CancellationToken cancellationToken);
public override System.Threading.Tasks.Task<Microsoft.CodeAnalysis.TextAndVersion> LoadTextAndVersionAsync (Microsoft.CodeAnalysis.Workspace workspace, Microsoft.CodeAnalysis.DocumentId documentId, System.Threading.CancellationToken cancellationToken);
[System.Obsolete("Use/override LoadTextAndVersionAsync(LoadTextOptions, CancellationToken)", false)]
public override System.Threading.Tasks.Task<Microsoft.CodeAnalysis.TextAndVersion> LoadTextAndVersionAsync (Microsoft.CodeAnalysis.Workspace? workspace, Microsoft.CodeAnalysis.DocumentId? documentId, System.Threading.CancellationToken cancellationToken);
override this.LoadTextAndVersionAsync : Microsoft.CodeAnalysis.Workspace * Microsoft.CodeAnalysis.DocumentId * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.TextAndVersion>
[<System.Obsolete("Use/override LoadTextAndVersionAsync(LoadTextOptions, CancellationToken)", false)>]
override this.LoadTextAndVersionAsync : Microsoft.CodeAnalysis.Workspace * Microsoft.CodeAnalysis.DocumentId * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.TextAndVersion>
Public Overrides Function LoadTextAndVersionAsync (workspace As Workspace, documentId As DocumentId, cancellationToken As CancellationToken) As Task(Of TextAndVersion)
Parâmetros
- workspace
- Workspace
- documentId
- DocumentId
- cancellationToken
- CancellationToken
Retornos
- Atributos
Exceções
Aplica-se a
Colabore connosco no GitHub
A origem deste conteúdo pode ser encontrada no GitHub, onde também pode criar e rever problemas e pedidos Pull. Para mais informações, consulte o nosso guia do contribuidor.