Click or drag to resize
VariableContainerExtensionsRegisterFunction Method (IVariableContainer, String, IExecutableModel, String)
Registers a logic as a function

Namespace: FlexRule
Assembly: FlexRule.Engine (in FlexRule.Engine.dll) Version: 0.0.0.0 (0.0.0.0)
Syntax
C#
public static IVariableContainer RegisterFunction(
	this IVariableContainer container,
	string name,
	IExecutableModel function,
	string functionReturn
)

Parameters

container
Type: FlexRuleIVariableContainer
name
Type: SystemString
function
Type: FlexRuleIExecutableModel
functionReturn
Type: SystemString
Parameter name that is used as return value of function. Null if there is no return.

Return Value

Type: IVariableContainer

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IVariableContainer. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also