Click or drag to resize
MacroResolverRegisterNamespace Method
Registers a namespace within this macro resolver

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 8.2.23
Syntax
C#
public void RegisterNamespace(
	IMacroNamespace ns,
	string name = null,
	bool allowAnonymous = false,
	bool hidden = false
)

Parameters

ns
Type: CMS.MacroEngineIMacroNamespace
Namespace object
name (Optional)
Type: SystemString
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: SystemBoolean
If true, the namespace members are registered also as anonymous
hidden (Optional)
Type: SystemBoolean
If true, the namespace is hidden and doesn't show up in the Intellisense
See Also