Class RenderModel<TContent>
Inheritance
System.Object
Namespace:System.Dynamic.ExpandoObject
Assembly:umbraco.dll
Syntax
public class RenderModel<TContent> : RenderModel, IRenderModel where TContent : IPublishedContent
Type Parameters
Name |
Description |
TContent |
|
Constructors
RenderModel(TContent)
Constructor to set the IPublishedContent and the CurrentCulture is set by the UmbracoContext
Declaration
public RenderModel(TContent content)
Parameters
Type |
Name |
Description |
TContent |
content |
|
RenderModel(TContent, CultureInfo)
Constructor specifying both the IPublishedContent and the CultureInfo
Declaration
public RenderModel(TContent content, CultureInfo culture)
Parameters
Type |
Name |
Description |
TContent |
content |
|
System.Globalization.CultureInfo |
culture |
|
Properties
Content
Returns the current IPublishedContent object
Declaration
public TContent Content { get; }
Property Value
Type |
Description |
TContent |
|