Click or drag to resize
MacroResolverSetNamedSourceDataCallback Method
Registers the named source data with late binding. Callback is called whenever the value is needed by MacroResolver.

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 10.0.0
Syntax
C#
public void SetNamedSourceDataCallback(
	string selector,
	Func<EvaluationContext, Object> callback,
	bool isPrioritized = true
)

Parameters

selector
Type: SystemString
Data selector
callback
Type: SystemFuncEvaluationContext, Object
Callback function which is called to get the data
isPrioritized (Optional)
Type: SystemBoolean
If true, this item will appear at the top of AutoCompletion and ObjectTree
See Also