Partilhar via


PowerFxREPL.HandleCommandAsync Method

Definition

Directly invoke a command. This skips multiline handling.

public virtual System.Threading.Tasks.Task<Microsoft.PowerFx.ReplResult> HandleCommandAsync(string expression, System.Threading.CancellationToken cancel = default, uint? lineNumber = default);
abstract member HandleCommandAsync : string * System.Threading.CancellationToken * Nullable<uint32> -> System.Threading.Tasks.Task<Microsoft.PowerFx.ReplResult>
override this.HandleCommandAsync : string * System.Threading.CancellationToken * Nullable<uint32> -> System.Threading.Tasks.Task<Microsoft.PowerFx.ReplResult>
Public Overridable Function HandleCommandAsync (expression As String, Optional cancel As CancellationToken = Nothing, Optional lineNumber As Nullable(Of UInteger) = Nothing) As Task(Of ReplResult)

Parameters

expression
String

expression to run.

cancel
CancellationToken

cancellation token.

lineNumber
Nullable<UInt32>

line number to attribute errors to.

Returns

status object with details.

Exceptions

Applies to