共用方式為


FileTextLoader.LoadTextAndVersionAsync 方法

定義

多載

LoadTextAndVersionAsync(LoadTextOptions, CancellationToken)

在工作區中載入文字和檔的版本。

LoadTextAndVersionAsync(Workspace, DocumentId, CancellationToken)
已淘汰.

在工作區中載入文字和檔的版本。

LoadTextAndVersionAsync(LoadTextOptions, CancellationToken)

Source:
FileTextLoader.cs
Source:
FileTextLoader.cs
Source:
FileTextLoader.cs
Source:
FileTextLoader.cs
Source:
FileTextLoader.cs

在工作區中載入文字和檔的版本。

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)

參數

options
LoadTextOptions
cancellationToken
CancellationToken

傳回

例外狀況

適用於

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

警告

Use/override LoadTextAndVersionAsync(LoadTextOptions, CancellationToken)

在工作區中載入文字和檔的版本。

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)

參數

workspace
Workspace
documentId
DocumentId
cancellationToken
CancellationToken

傳回

屬性

例外狀況

適用於