Freigeben über


PowerFxREPL Class

Definition

Caution

Preview

A REPL (Read-Eval-Print Loop) for Power Fx. This accepts input, evaluates it, and prints the result.

[System.Obsolete("Preview")]
public class PowerFxREPL
[<System.Obsolete("Preview")>]
type PowerFxREPL = class
Public Class PowerFxREPL
Inheritance
PowerFxREPL
Attributes

Constructors

PowerFxREPL()

Properties

AllowImport
Obsolete.

Enable the Import() function for importing modules. Defaults to false.

AllowSetDefinitions
AllowUserDefinedFunctions
Echo
Engine
ExitRequested
ExtraSymbolValues

Optional - if set, additional symbol values that are fed into the repl .

FunctionNames

Get sorted names of all functions. This includes functions from the Engine as well as MetaFunctions.

HelpProvider
InnerServices

Optional set of Services provided to Repl at eval time.

MetaFunctions
MultilineProcessor
Output
ParserOptions
PrintResult
Prompt
PromptContinuation
UserInfo

Optional - provide the current user. Must call EnableUserObject(String[]) first to declare the schema.

ValueFormatter

Methods

AddPseudoFunction(IPseudoFunction)
EnableSampleUserObject()
EnableUserObject(String[])
GetCombined()
HandleCommandAsync(String, CancellationToken, Nullable<UInt32>)

Directly invoke a command. This skips multiline handling.

HandleLineAsync(String, CancellationToken, Nullable<UInt32>)

Accept a single line of input and evaluate it. This allows continuations via the policy set in MultilineProcessor.

OnEvalExceptionAsync(Exception, CancellationToken)
OnFormulaUpdate(String, FormulaValue)
WritePromptAsync(CancellationToken)

Print the prompt - call this before input. The prompt can change based on whether this is the first line of input or a contination within a multiline.

Applies to