Table of Contents

Class RegisterMacroNamespaceAttribute

Namespace
CMS.MacroEngine
Assembly
CMS.MacroEngine.dll

Registers a macro namespace within the macro engine

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public class RegisterMacroNamespaceAttribute : Attribute, IPreInitAttribute
Inheritance
object
Attribute
RegisterMacroNamespaceAttribute
Implements
Extension Methods

Constructors

RegisterMacroNamespaceAttribute(Type)

Constructor

public RegisterMacroNamespaceAttribute(Type type)

Parameters

type Type

Namespace class type

Properties

AllowAnonymous

If true, namespace members are allowed to be used also as anonymous

public bool AllowAnonymous { get; set; }

Property Value

bool

Hidden

If true, the namespace is hidden and doesn't show up in the Intellisense

public bool Hidden { get; set; }

Property Value

bool

MarkedType

Namespace type

public Type MarkedType { get; set; }

Property Value

Type

Name

Namespace name

public string Name { get; set; }

Property Value

string

Methods

PreInit()

Initializes the attribute

public void PreInit()