PowerFxREPL.HandleCommandAsync 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.
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.
Returns
status object with details.
Exceptions
invalid.