Table of Contents

Class RegisterExtensionAttribute

Namespace
CMS
Assembly
CMS.Base.dll

Marks the class as extension of the given class

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

Constructors

RegisterExtensionAttribute(Type, Type)

Constructor

public RegisterExtensionAttribute(Type extensionType, Type extendedType)

Parameters

extensionType Type

Extension type

extendedType Type

Extended type

Properties

ExtensionType

Gets the extension type

public Type ExtensionType { get; protected set; }

Property Value

Type

MarkedType

Gets the extended type

public Type MarkedType { get; protected set; }

Property Value

Type

Methods

GetExtensionObject()

Creates an extension object based on extension type

protected IGenericExtension GetExtensionObject()

Returns

IGenericExtension

PreInit()

Initializes the attribute

public void PreInit()