MacroField Constructor (String, FuncEvaluationContext, Object, FuncEvaluationContext, Boolean) |
Creates new instance with value evaluator which needs a context.
Namespace: CMS.MacroEngineAssembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 13.0.131
Syntax 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