CodeAction.ComputeOperationsAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ComputeOperationsAsync(CancellationToken) |
如果要实现 CodeAction 包含自定义 CodeActionOperation的 子类,请重写此方法。 |
ComputeOperationsAsync(IProgress<CodeAnalysisProgress>, CancellationToken) |
如果要实现 CodeAction 包含自定义 CodeActionOperation的 子类,请重写此方法。 优先于在计算长时间运行且应向用户显示进度时重写此方法 ComputeOperationsAsync(CancellationToken) 。 |
ComputeOperationsAsync(CancellationToken)
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
如果要实现 CodeAction 包含自定义 CodeActionOperation的 子类,请重写此方法。
protected:
virtual System::Threading::Tasks::Task<System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::CodeActions::CodeActionOperation ^> ^> ^ ComputeOperationsAsync(System::Threading::CancellationToken cancellationToken);
protected virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.CodeActions.CodeActionOperation>> ComputeOperationsAsync (System.Threading.CancellationToken cancellationToken);
abstract member ComputeOperationsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.CodeAnalysis.CodeActions.CodeActionOperation>>
override this.ComputeOperationsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.CodeAnalysis.CodeActions.CodeActionOperation>>
Protected Overridable Function ComputeOperationsAsync (cancellationToken As CancellationToken) As Task(Of IEnumerable(Of CodeActionOperation))
参数
- cancellationToken
- CancellationToken
返回
适用于
ComputeOperationsAsync(IProgress<CodeAnalysisProgress>, CancellationToken)
- Source:
- CodeAction.cs
- Source:
- CodeAction.cs
如果要实现 CodeAction 包含自定义 CodeActionOperation的 子类,请重写此方法。 优先于在计算长时间运行且应向用户显示进度时重写此方法 ComputeOperationsAsync(CancellationToken) 。
protected virtual System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.CodeActions.CodeActionOperation>> ComputeOperationsAsync (IProgress<Microsoft.CodeAnalysis.CodeAnalysisProgress> progress, System.Threading.CancellationToken cancellationToken);
abstract member ComputeOperationsAsync : IProgress<Microsoft.CodeAnalysis.CodeAnalysisProgress> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.CodeActions.CodeActionOperation>>
override this.ComputeOperationsAsync : IProgress<Microsoft.CodeAnalysis.CodeAnalysisProgress> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.CodeActions.CodeActionOperation>>
Protected Overridable Function ComputeOperationsAsync (progress As IProgress(Of CodeAnalysisProgress), cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of CodeActionOperation))
参数
- progress
- IProgress<CodeAnalysisProgress>
- cancellationToken
- CancellationToken