MacroResolverResolverName Property |
Resolver name used for context specific resolving.
Namespace: CMS.MacroEngineAssembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 11.0.0
Syntax public string ResolverName { get; set; }
Property Value
Type:
StringExamples
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