FileTextLoader.LoadTextAndVersionAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
- 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
- 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
返回
- 属性