Table of Contents
These v19 docs are archived 🔒. Go to the latest docs home or try if this exact page is available in the latest docs.

Class RazorTyped<TModel>

Namespace
Custom.Hybrid
Assembly
ToSic.Sxc.Dnn.Razor.dll

New base class with custom model. The rest of this is identical to RazorTyped.

[PublicApi]
public abstract class RazorTyped<TModel> : RazorTyped, IHasLog

Type Parameters

TModel

Model type - like string or a class from your AppCode

Inheritance
object
WebPageExecutingBase
WebPageRenderingBase
WebPageBase
RazorComponentBase
RazorTyped<TModel>
Implements
Inherited Members

Remarks

Introduced in v17.03

Properties

Model

The model for this Razor file. Typed according to the @inherits statement.

public TModel Model { get; }

Property Value

TModel