共用方式為


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
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

覆寫這個方法以計算實作這個 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

覆寫這個方法以計算實作這個 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

傳回

適用於