Freigeben über


CodeActionWithOptions.ComputeOperationsAsync Methode

Definition

Überlädt

ComputeOperationsAsync(CancellationToken)
ComputeOperationsAsync(Object, CancellationToken)

Überschreiben Sie diese Methode, um die Vorgänge zu berechnen, die diese CodeActionimplementieren.

ComputeOperationsAsync(Object, IProgress<CodeAnalysisProgress>, CancellationToken)

Überschreiben Sie diese Methode, um die Vorgänge zu berechnen, die diese CodeActionimplementieren. Überschreiben Sie diese Methode lieber ComputeOperationsAsync(Object, CancellationToken) , wenn die Berechnung lange ausgeführt wird und der Fortschritt dem Benutzer angezeigt werden sollte.

ComputeOperationsAsync(CancellationToken)

Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
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))

Parameter

cancellationToken
CancellationToken

Gibt zurück

Gilt für:

ComputeOperationsAsync(Object, CancellationToken)

Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs

Überschreiben Sie diese Methode, um die Vorgänge zu berechnen, die diese CodeActionimplementieren.

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

Parameter

options
Object

Ein -Objekt instance von einem Aufruf von GetOptions(CancellationToken)zurückgegeben.

cancellationToken
CancellationToken

Ein Abbruchtoken.

Gibt zurück

Gilt für:

ComputeOperationsAsync(Object, IProgress<CodeAnalysisProgress>, CancellationToken)

Quelle:
CodeActionWithOptions.cs
Quelle:
CodeActionWithOptions.cs

Überschreiben Sie diese Methode, um die Vorgänge zu berechnen, die diese CodeActionimplementieren. Überschreiben Sie diese Methode lieber ComputeOperationsAsync(Object, CancellationToken) , wenn die Berechnung lange ausgeführt wird und der Fortschritt dem Benutzer angezeigt werden sollte.

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

Parameter

options
Object
cancellationToken
CancellationToken

Gibt zurück

Gilt für: