Class Razor12
Base Class for Dynamic CSharp Classes in Dnn
Class Custom.Dnn.Razor12 for Dnn ☢️
This is the Dnn specific base class. It's the very same as Custom.Hybrid.Razor12
except for the additional Dnn
and Code
Property.
Because of this, the documentation here only shows Dnn
- for all other properties go to Custom.Hybrid.Razor12
Tip
If you don't need these special properties, we strongly suggest to move to the Hybrid implementation.
Inheritance
System.Object
System.Web.WebPages.WebPageExecutingBase
System.Web.WebPages.WebPageRenderingBase
System.Web.WebPages.WebPageBase
ToSic.Sxc.Web.RazorComponentBase
Razor12
Inherited Members
Namespace: Custom.Dnn
Assembly: ToSic.Sxc.Dnn.Razor.dll
Syntax
[PublicApi_Stable_ForUseInYourCode]
public abstract class Razor12 : Razor12, ITemplateFile, IHasCodeLog, IDnnDynamicCodeAdditions, IRazor12, IRazor, IHasDynamicCodeRoot, INeedsDynamicCodeRoot, IDynamicCode12, IDynamicCode, ICreateInstance, ICompatibilityLevel, IHasLog, ICompatibleToCode12, IDnnRazor
Properties
| Improve this Doc View SourceDnn
The DNN context.
Declaration
public IDnnContext Dnn { get; }
Property Value
Type | Description |
---|---|
IDnnContext | The DNN context. |