CodeActionWithOptions.ComputeOperationsAsync 方法

定义

重载

ComputeOperationsAsync(CancellationToken)
ComputeOperationsAsync(Object, CancellationToken)

重写此方法以计算实现此 CodeAction的操作。

ComputeOperationsAsync(Object, IProgress<CodeAnalysisProgress>, CancellationToken)

重写此方法以计算实现此 CodeAction的操作。 优先于在计算长时间运行且应向用户显示进度时重写此方法 ComputeOperationsAsync(Object, CancellationToken)

ComputeOperationsAsync(CancellationToken)

Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
protected:
 override System::Threading::Tasks::Task<System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::CodeActions::CodeActionOperation ^> ^> ^ ComputeOperationsAsync(System::Threading::CancellationToken cancellationToken);
protected override System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.CodeActions.CodeActionOperation>> ComputeOperationsAsync (System.Threading.CancellationToken cancellationToken);
override this.ComputeOperationsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.CodeAnalysis.CodeActions.CodeActionOperation>>
Protected Overrides Function ComputeOperationsAsync (cancellationToken As CancellationToken) As Task(Of IEnumerable(Of CodeActionOperation))

参数

cancellationToken
CancellationToken

返回

适用于

ComputeOperationsAsync(Object, CancellationToken)

Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs

重写此方法以计算实现此 CodeAction的操作。

protected:
 abstract System::Threading::Tasks::Task<System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::CodeActions::CodeActionOperation ^> ^> ^ ComputeOperationsAsync(System::Object ^ options, System::Threading::CancellationToken cancellationToken);
protected abstract System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.CodeActions.CodeActionOperation>> ComputeOperationsAsync (object options, System.Threading.CancellationToken cancellationToken);
protected virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.CodeActions.CodeActionOperation>> ComputeOperationsAsync (object options, System.Threading.CancellationToken cancellationToken);
override this.ComputeOperationsAsync : obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.CodeAnalysis.CodeActions.CodeActionOperation>>
Protected MustOverride Function ComputeOperationsAsync (options As Object, cancellationToken As CancellationToken) As Task(Of IEnumerable(Of CodeActionOperation))
Protected Overridable Function ComputeOperationsAsync (options As Object, cancellationToken As CancellationToken) As Task(Of IEnumerable(Of CodeActionOperation))

参数

options
Object

从调用 GetOptions(CancellationToken)返回的对象实例。

cancellationToken
CancellationToken

取消标记。

返回

适用于

ComputeOperationsAsync(Object, IProgress<CodeAnalysisProgress>, CancellationToken)

Source:
CodeActionWithOptions.cs
Source:
CodeActionWithOptions.cs

重写此方法以计算实现此 CodeAction的操作。 优先于在计算长时间运行且应向用户显示进度时重写此方法 ComputeOperationsAsync(Object, CancellationToken)

protected virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.CodeActions.CodeActionOperation>> ComputeOperationsAsync (object options, IProgress<Microsoft.CodeAnalysis.CodeAnalysisProgress> progress, System.Threading.CancellationToken cancellationToken);
override this.ComputeOperationsAsync : obj * IProgress<Microsoft.CodeAnalysis.CodeAnalysisProgress> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.CodeAnalysis.CodeActions.CodeActionOperation>>
Protected Overridable Function ComputeOperationsAsync (options As Object, progress As IProgress(Of CodeAnalysisProgress), cancellationToken As CancellationToken) As Task(Of IEnumerable(Of CodeActionOperation))

参数

options
Object
cancellationToken
CancellationToken

返回

适用于