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: 12.0.0
Syntax
C#
public string ResolverName { get; set; }

Property Value

Type: String
Examples
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