Share via


TextLoader.LoadTextAndVersionAsync Méthode

Définition

Surcharges

LoadTextAndVersionAsync(LoadTextOptions, CancellationToken)

Chargez un texte et une version du document.

LoadTextAndVersionAsync(Workspace, DocumentId, CancellationToken)
Obsolète.

Chargez un texte et une version du document.

LoadTextAndVersionAsync(LoadTextOptions, CancellationToken)

Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs

Chargez un texte et une version du document.

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)

Paramètres

options
LoadTextOptions

Les implémentations de cette méthode doivent être utilisées ChecksumAlgorithm lors de la création SourceText à partir d’une représentation binaire d’origine et l’ignorer dans le cas contraire. Les appelants de cette méthode doivent réussir en spécifiant les propriétés souhaitées LoadTextOptions de SourceText. L’implémentation peut retourner un SourceText qui ne répond pas aux exigences données. Par exemple, les types hérités qui ne remplacent pas cette méthode ignorent tous .options

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Exceptions

S’applique à

LoadTextAndVersionAsync(Workspace, DocumentId, CancellationToken)

Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs

Attention

Use/override LoadTextAndVersionAsync(LoadTextOptions, CancellationToken)

Chargez un texte et une version du document.

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)

Paramètres

workspace
Workspace

Obsolète. Null.

documentId
DocumentId

Obsolète. Null.

cancellationToken
CancellationToken

Retours

Attributs

Exceptions

S’applique à