MacroResolver RegisterNamespace Method Kentico 8.1 API Reference
Registers a namespace within this macro resolver

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

ns
Type: CMS.MacroEngine IMacroNamespace
Namespace object
name (Optional)
Type: OnlineSystem String
Namespace name. If not set, the name is automatically taken from the type name of the namespace object with removed Namespace suffix.
allowAnonymous (Optional)
Type: OnlineSystem Boolean
If true, the namespace members are registered also as anonymous
hidden (Optional)
Type: OnlineSystem Boolean
If true, the namespace is hidden and doesn't show up in the Intellisense
See Also