Click or drag to resize
MacroField Constructor (String, FuncEvaluationContext, Object, FuncEvaluationContext, Boolean)
Creates new instance with value evaluator which needs a context.

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

Parameters

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