Condividi tramite


TextLoader.LoadTextAndVersionAsync Metodo

Definizione

Overload

LoadTextAndVersionAsync(LoadTextOptions, CancellationToken)

Caricare un testo e una versione del documento.

LoadTextAndVersionAsync(Workspace, DocumentId, CancellationToken)
Obsoleti.

Caricare un testo e una versione del documento.

LoadTextAndVersionAsync(LoadTextOptions, CancellationToken)

Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs

Caricare un testo e una versione del documento.

public virtual System.Threading.Tasks.Task<Microsoft.CodeAnalysis.TextAndVersion> LoadTextAndVersionAsync (Microsoft.CodeAnalysis.LoadTextOptions options, System.Threading.CancellationToken cancellationToken);
abstract member LoadTextAndVersionAsync : Microsoft.CodeAnalysis.LoadTextOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.TextAndVersion>
override this.LoadTextAndVersionAsync : Microsoft.CodeAnalysis.LoadTextOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.TextAndVersion>
Public Overridable Function LoadTextAndVersionAsync (options As LoadTextOptions, cancellationToken As CancellationToken) As Task(Of TextAndVersion)

Parametri

options
LoadTextOptions

Le implementazioni di questo metodo devono essere usate ChecksumAlgorithm durante la creazione SourceText da una rappresentazione binaria originale e la ignorano in caso contrario. I chiamanti di questo metodo devono passare LoadTextOptions specificando le proprietà desiderate di SourceText. L'implementazione può restituire un oggetto SourceText che non soddisfa i requisiti specificati. Ad esempio, i tipi legacy che non eseguono l'override di questo metodo ignorano tutti .options

cancellationToken
CancellationToken

Token di annullamento.

Restituisce

Eccezioni

Si applica a

LoadTextAndVersionAsync(Workspace, DocumentId, CancellationToken)

Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs
Origine:
TextLoader.cs

Attenzione

Use/override LoadTextAndVersionAsync(LoadTextOptions, CancellationToken)

Caricare un testo e una versione del documento.

public:
 abstract System::Threading::Tasks::Task<Microsoft::CodeAnalysis::TextAndVersion ^> ^ LoadTextAndVersionAsync(Microsoft::CodeAnalysis::Workspace ^ workspace, Microsoft::CodeAnalysis::DocumentId ^ documentId, System::Threading::CancellationToken cancellationToken);
public abstract 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)")]
public virtual System.Threading.Tasks.Task<Microsoft.CodeAnalysis.TextAndVersion> LoadTextAndVersionAsync (Microsoft.CodeAnalysis.Workspace? workspace, Microsoft.CodeAnalysis.DocumentId? documentId, System.Threading.CancellationToken cancellationToken);
abstract member LoadTextAndVersionAsync : Microsoft.CodeAnalysis.Workspace * Microsoft.CodeAnalysis.DocumentId * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.TextAndVersion>
[<System.Obsolete("Use/override LoadTextAndVersionAsync(LoadTextOptions, CancellationToken)")>]
abstract member LoadTextAndVersionAsync : Microsoft.CodeAnalysis.Workspace * Microsoft.CodeAnalysis.DocumentId * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.TextAndVersion>
override this.LoadTextAndVersionAsync : Microsoft.CodeAnalysis.Workspace * Microsoft.CodeAnalysis.DocumentId * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.TextAndVersion>
Public MustOverride Function LoadTextAndVersionAsync (workspace As Workspace, documentId As DocumentId, cancellationToken As CancellationToken) As Task(Of TextAndVersion)
Public Overridable Function LoadTextAndVersionAsync (workspace As Workspace, documentId As DocumentId, cancellationToken As CancellationToken) As Task(Of TextAndVersion)

Parametri

workspace
Workspace

Obsoleta. Null.

documentId
DocumentId

Obsoleta. Null.

cancellationToken
CancellationToken

Restituisce

Attributi

Eccezioni

Si applica a