Share via


ReflectionFunction Class

Definition

Base class for importing a C# function into Power Fx. Dervied class should follow this convention:

  • class name should folow this convention: "[Method Name]" + "Function" + optional postfix for function orevloading
  • it should have a public static method 'Execute'. this class will reflect over that signature to import to Power Fx.
public abstract class ReflectionFunction
type ReflectionFunction = class
Public MustInherit Class ReflectionFunction
Inheritance
ReflectionFunction

Constructors

ReflectionFunction()

Initializes a new instance of the ReflectionFunction class. And adds function to root namespace. Assume by defaults. Will reflect to get primitive types.

ReflectionFunction(DPath, String, FormulaType, FormulaType[])

Initializes a new instance of the ReflectionFunction class. And adds function to given namespace. Useful for Tables/Record types.

ReflectionFunction(DPath)

Initializes a new instance of the ReflectionFunction class. And adds function to given namespace. Assume by defaults. Will reflect to get primitive types.

ReflectionFunction(String, FormulaType, FormulaType[])

Initializes a new instance of the ReflectionFunction class. And adds function to root namespace. Useful for Tables/Record types.

Fields

SetPropertyName

Properties

ConfigType

Methods

Invoke(IServiceProvider, FormulaValue[])
Invoke(IServiceProvider, IReadOnlyList<FormulaValue>)
InvokeAsync(IServiceProvider, FormulaValue[], CancellationToken)
InvokeAsync(IServiceProvider, IReadOnlyList<FormulaValue>, CancellationToken)

Applies to