MacroField Constructor (String, FuncObject, FuncEvaluationContext, Boolean) |
Creates new instance with value evaluator which does not need a context.
Namespace: CMS.MacroEngineAssembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 11.0.0
Syntaxpublic 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