다음을 통해 공유


Engine Class

Definition

Expose binding logic for Power Fx. Derive from this to provide evaluation abilities.

public class Engine
type Engine = class
Public Class Engine
Inheritance
Engine
Derived

Constructors

Engine()

Initializes a new instance of the Engine class.

Engine(PowerFxConfig)

Initializes a new instance of the Engine class.

Properties

AssemblyVersion

For diagnostics, get the assembly version of Power Fx Engine.

Config

Configuration symbols for this Power Fx engine.

EngineSymbols
FunctionInfos

Get all functions from the config and symbol tables.

PostCheckErrorHandlers
PrimitiveTypes

Builtin Types supported by this engine.

SupportedFunctions

Builtin functions supported by this engine.

Methods

AddUserDefinedFunction(String, CultureInfo, ReadOnlySymbolTable, Boolean)
Check(ParseResult, RecordType)
Check(String, ParserOptions, ReadOnlySymbolTable)
Check(String, RecordType, ParserOptions)

Parse and Bind an expression.

CreateFieldRenamer(RecordType, DPath, DName, CultureInfo)

Creates a renamer instance for updating a field reference from parameters in expressions.

CreateFieldRenamer(RecordType, DPath, DName, ParserOptions)

Creates a renamer instance for updating a field reference from parameters in expressions.

CreateOptionSetRenamer(RecordType, DPath, DName, CultureInfo)
GetAllFunctionNames()

List all functions (both builtin and custom) registered with this evaluator.

GetCombinedEngineSymbols()

Get a combined engine symbol table, including builtins and config.

GetDefaultParserOptionsCopy()
GetDisplayExpression(String, ReadOnlySymbolTable, CultureInfo)
GetDisplayExpression(String, RecordType, CultureInfo)

Convert references in an expression to the display form.

GetInvariantExpression(String, RecordType, CultureInfo)

Convert references in an expression to the invariant form.

GetInvariantExpressionParserOption(String, RecordType, ParserOptions)
Parse(String, Features, ParserOptions)

Parse the expression without doing any binding.

Parse(String, ParserOptions)

Parse the expression without doing any binding.

PostCheck(CheckResult)
Suggest(CheckResult, Int32, IServiceProvider)
Suggest(CheckResult, Int32)

Get intellisense from the formula, with parser options.

Suggest(String, RecordType, Int32)
Tokenize(String, CultureInfo)

Tokenize an expression to a sequence of Tokens.

Extension Methods

CreateEditorScope(Engine, ParserOptions, ReadOnlySymbolTable)

A scope is the context for a specific formula bar. This will accept the text from the formula bar (editor), use the additional parameters here, and then call Engine.Check().

Applies to