FileTextLoader.LoadTextAndVersionAsync 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.
Overloads
LoadTextAndVersionAsync(LoadTextOptions, CancellationToken) |
Load a text and a version of the document in the workspace. |
LoadTextAndVersionAsync(Workspace, DocumentId, CancellationToken) |
Obsolete.
Load a text and a version of the document in the workspace. |
LoadTextAndVersionAsync(LoadTextOptions, CancellationToken)
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
- Source:
- FileTextLoader.cs
Load a text and a version of the document in the 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)
Parameters
- options
- LoadTextOptions
- cancellationToken
- CancellationToken
Returns
Exceptions
Applies to
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
- Source:
- FileTextLoader.cs
Caution
Use/override LoadTextAndVersionAsync(LoadTextOptions, CancellationToken)
Load a text and a version of the document in the 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)
Parameters
- workspace
- Workspace
- documentId
- DocumentId
- cancellationToken
- CancellationToken
Returns
- Attributes
Exceptions
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.