Condividi tramite


CodeAction.ComputePreviewOperationsAsync(CancellationToken) Metodo

Definizione

Eseguire l'override di questo metodo se si vuole implementare un CodeAction oggetto con un set di operazioni di anteprima diverse dalle operazioni prodotte da ComputeOperationsAsync(IProgress<CodeAnalysisProgress>, CancellationToken).

protected:
 virtual System::Threading::Tasks::Task<System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::CodeActions::CodeActionOperation ^> ^> ^ ComputePreviewOperationsAsync(System::Threading::CancellationToken cancellationToken);
protected virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.CodeActions.CodeActionOperation>> ComputePreviewOperationsAsync (System.Threading.CancellationToken cancellationToken);
abstract member ComputePreviewOperationsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.CodeAnalysis.CodeActions.CodeActionOperation>>
override this.ComputePreviewOperationsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.CodeAnalysis.CodeActions.CodeActionOperation>>
Protected Overridable Function ComputePreviewOperationsAsync (cancellationToken As CancellationToken) As Task(Of IEnumerable(Of CodeActionOperation))

Parametri

cancellationToken
CancellationToken

Restituisce

Si applica a