Click or drag to resize
MacroField Constructor (String, FuncObject, FuncEvaluationContext, Boolean)
Creates new instance with value evaluator which does not need a context.

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 9.0.0
Syntax
C#
public MacroField(
	string name,
	Func<Object> valueEvaluator,
	Func<EvaluationContext, bool> availabilityCondition = null
)

Parameters

name
Type: SystemString
Name of the field
valueEvaluator
Type: SystemFuncObject
Value evaluation function which does not need evaluation context
availabilityCondition (Optional)
Type: SystemFuncEvaluationContext, Boolean
Availability condition
See Also