CodeActionWithOptions.ComputeOperationsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ComputeOperationsAsync(CancellationToken) | |
ComputeOperationsAsync(Object, CancellationToken) |
Override this method to compute the operations that implement this CodeAction. |
ComputeOperationsAsync(Object, IProgress<CodeAnalysisProgress>, CancellationToken) |
Override this method to compute the operations that implement this CodeAction. Prefer overriding this method over ComputeOperationsAsync(Object, CancellationToken) when computation is long running and progress should be shown to the user. |
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))
Parameters
- cancellationToken
- CancellationToken
Returns
Applies to
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
Override this method to compute the operations that implement this 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))
Parameters
- options
- Object
An object instance returned from a call to GetOptions(CancellationToken).
- cancellationToken
- CancellationToken
A cancellation token.
Returns
Applies to
ComputeOperationsAsync(Object, IProgress<CodeAnalysisProgress>, CancellationToken)
- Source:
- CodeActionWithOptions.cs
- Source:
- CodeActionWithOptions.cs
Override this method to compute the operations that implement this CodeAction. Prefer overriding this method over ComputeOperationsAsync(Object, CancellationToken) when computation is long running and progress should be shown to the user.
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))
Parameters
- options
- Object
- progress
- IProgress<CodeAnalysisProgress>
- cancellationToken
- CancellationToken