Click or drag to resize
MacroResolverResolverName Property
Resolver name used for context specific resolving.

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 9.0.0
public string ResolverName { get; set; }

Property Value

Type: String
The macro with resolver parameter e.g. {% CurrentUser.UserName|(resolver)CustomResolverName %} will be resolved only with the same resolver name specified in this property.
var resolver = MacroResolver.CreateChild();
resolver.ResolverName = "CustomResolverName";
var result = resolver.ResolveMacros("{% CurrentUser.UserName|(resolver)CustomResolverName %}");
See Also