Compartilhar via


CodeAction.ComputeOperationsAsync Método

Definição

Sobrecargas

ComputeOperationsAsync(CancellationToken)

Substitua esse método se você quiser implementar uma CodeAction subclasse que inclua s personalizados CodeActionOperation.

ComputeOperationsAsync(IProgress<CodeAnalysisProgress>, CancellationToken)

Substitua esse método se você quiser implementar uma CodeAction subclasse que inclua s personalizados CodeActionOperation. Prefira substituir esse método em vez ComputeOperationsAsync(CancellationToken) de quando a computação estiver em execução longa e o progresso deve ser mostrado ao usuário.

ComputeOperationsAsync(CancellationToken)

Origem:
CodeAction.cs
Origem:
CodeAction.cs
Origem:
CodeAction.cs
Origem:
CodeAction.cs
Origem:
CodeAction.cs
Origem:
CodeAction.cs
Origem:
CodeAction.cs
Origem:
CodeAction.cs
Origem:
CodeAction.cs
Origem:
CodeAction.cs
Origem:
CodeAction.cs
Origem:
CodeAction.cs
Origem:
CodeAction.cs
Origem:
CodeAction.cs
Origem:
CodeAction.cs
Origem:
CodeAction.cs
Origem:
CodeAction.cs
Origem:
CodeAction.cs
Origem:
CodeAction.cs
Origem:
CodeAction.cs
Origem:
CodeAction.cs
Origem:
CodeAction.cs
Origem:
CodeAction.cs
Origem:
CodeAction.cs

Substitua esse método se você quiser implementar uma CodeAction subclasse que inclua s personalizados 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))

Parâmetros

cancellationToken
CancellationToken

Retornos

Aplica-se a

ComputeOperationsAsync(IProgress<CodeAnalysisProgress>, CancellationToken)

Origem:
CodeAction.cs
Origem:
CodeAction.cs

Substitua esse método se você quiser implementar uma CodeAction subclasse que inclua s personalizados CodeActionOperation. Prefira substituir esse método em vez ComputeOperationsAsync(CancellationToken) de quando a computação estiver em execução longa e o progresso deve ser mostrado ao usuário.

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

Parâmetros

cancellationToken
CancellationToken

Retornos

Aplica-se a