Class RenderModel
Represents the model for the current rendering page in Umbraco
Inheritance
System.Object
Namespace:System.Dynamic.ExpandoObject
Assembly:umbraco.dll
Syntax
public class RenderModel : IRenderModel
Constructors
RenderModel(IPublishedContent)
Constructor to set the IPublishedContent and the CurrentCulture is set by the UmbracoContext
Declaration
public RenderModel(IPublishedContent content)
Parameters
Type | Name | Description |
---|---|---|
IPublishedContent | content |
RenderModel(IPublishedContent, CultureInfo)
Constructor specifying both the IPublishedContent and the CultureInfo
Declaration
public RenderModel(IPublishedContent content, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
IPublishedContent | content | |
System.Globalization.CultureInfo | culture |
Properties
Content
Returns the current IPublishedContent object
Declaration
public IPublishedContent Content { get; }
Property Value
Type | Description |
---|---|
IPublishedContent |
CurrentCulture
Returns the current Culture assigned to the page being rendered
Declaration
public CultureInfo CurrentCulture { get; }
Property Value
Type | Description |
---|---|
System.Globalization.CultureInfo |