• Basics
  • Abyss
  • Web APIs
  • C# & Razor
  • .net API
  • JS & TS API

    Show / Hide Table of Contents

    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
    Razor12
    Implements
    IHasCodeLog
    IDnnDynamicCodeAdditions
    IDynamicCode12
    IDynamicCode
    ICreateInstance
    IHasLog
    Inherited Members
    Razor12.DynamicModel
    Razor12.Link
    Razor12.Edit
    Razor12.GetService<TService>()
    Razor12.App
    Razor12.Data
    Razor12.AsDynamic(String, String)
    Razor12.AsDynamic(IEntity)
    Razor12.AsDynamic(Object)
    Razor12.AsDynamic(Object[])
    Razor12.AsEntity(Object)
    Razor12.AsList(Object)
    Razor12.Convert
    Razor12.CreateSource<T>(IDataSource, Object)
    Razor12.CreateSource<T>(IDataStream)
    Razor12.Content
    Razor12.Header
    Razor12.AsAdam(IDynamicEntity, String)
    Razor12.AsAdam(IEntity, String)
    Razor12.CmsContext
    Razor12.Resources
    Razor12.Settings
    Razor12.Path
    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 Source

    Dnn

    The DNN context.

    Declaration
    public IDnnContext Dnn { get; }
    Property Value
    Type Description
    IDnnContext

    The DNN context.

    Implements

    IHasCodeLog
    IDnnDynamicCodeAdditions
    IDynamicCode12
    IDynamicCode
    ICreateInstance
    IHasLog
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX