Class Razor12
Base Class for Dynamic CSharp Razor in Dnn ☢️ only.
This is the Dnn specific base class. It's the very same as Custom.Hybrid.Razor12
except for the additional Dnn
.
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.Razor12
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 Razor12 : Razor12, IHasDnn, IHasLog
- Inheritance
-
objectWebPageExecutingBaseWebPageRenderingBaseWebPageBaseRazorComponentBaseRazor12
- Implements
- Inherited Members
Properties
Dnn
The DNN context. Has various objects to access the Dnn Page, etc.
public IDnnContext Dnn { get; }