Table of Contents

Class Code12

Namespace
Custom.Dnn
Assembly
ToSic.Sxc.Dnn.Core.dll

Base Class for Dynamic CSharp Classes in Dnn ☢️ only.

This is the Dnn specific base class. It's the very same as Custom.Hybrid.Code12 except for the additional Dnn Property. If you inherit from this class, you'll automatically have all the properties from DynamicCode.

Because of this, the documentation here only shows Dnn - for all other properties go to Custom.Hybrid.Code12

Tip

If you don't need the Dnn object, we strongly suggest to move to the Hybrid implementation.

The latest Hybrid base classes also have many new features and are easier to use. See Custom.Hybrid for more information.

[PublicApi]
public abstract class Code12 : DynamicCode12, ICanDebug, IHasLog, IHasDnn
Inheritance
DynamicCode12
Code12
Implements

Properties

Dnn

The DNN context. Has various objects to access the Dnn Page, etc.

public IDnnContext Dnn { get; }

Property Value

IDnnContext