Class ContentModel
Represents the model for the current Umbraco view.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public class ContentModel : IContentModel
Constructors
View SourceContentModel(IPublishedContent)
Initializes a new instance of the ContentModel class with a content.
Declaration
public ContentModel(IPublishedContent content)
Parameters
| Type | Name | Description |
|---|---|---|
| IPublishedContent | content |
Properties
View SourceContent
Gets the content.
Declaration
public IPublishedContent Content { get; }
Property Value
| Type | Description |
|---|---|
| IPublishedContent |