Class DynamicCode
This is a base class for custom code files with context.
If you create a class file for dynamic use and inherit from this, then the compiler will automatically add objects like Link, Dnn, etc.
The class then also has AsDynamic(...) and AsList(...) commands like a normal razor page.
Inheritance
System.Object
ToSic.Lib.Services.ServiceBase
ToSic.Sxc.Services.ServiceForDynamicCode
DynamicCode
Implements
Inherited Members
Namespace: ToSic.Sxc.Dnn
Assembly: ToSic.Sxc.Dnn.Core.dll
Syntax
[PublicApi_Stable_ForUseInYourCode]
public abstract class DynamicCode : DynamicCode, IHasCodeLog, IWrapper<IDynamicCode>, IHasDynamicCodeRoot, INeedsDynamicCodeRoot, IDnnDynamicCode, IDynamicCode, ICreateInstance, ICompatibilityLevel, IHasLog, IDnnDynamicCodeAdditions
Properties
| Improve this Doc View SourceDnn
The DNN context.
Declaration
public IDnnContext Dnn { get; }
Property Value
Type | Description |
---|---|
IDnnContext | The DNN context. |