Поделиться через


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

Возвращаемое значение

Атрибуты

Исключения

Применяется к