Class PublishedContentModel
Represents a strongly-typed published content.
Namespace: Umbraco.Cms.Core.Models.PublishedContent
Assembly: Umbraco.Core.dll
Syntax
public abstract class PublishedContentModel : PublishedContentWrapped, IPublishedContent, IPublishedElement
Remarks
Every strongly-typed published content class should inherit from PublishedContentModel
(or inherit from a class that inherits from... etc.) so they are picked by the factory.
Constructors
View SourcePublishedContentModel(IPublishedContent, IPublishedValueFallback)
Initializes a new instance of the PublishedContentModel class with an original IPublishedContent instance.
Declaration
protected PublishedContentModel(IPublishedContent content, IPublishedValueFallback publishedValueFallback)
Parameters
Type | Name | Description |
---|---|---|
IPublishedContent | content | The original content. |
IPublishedValueFallback | publishedValueFallback | the PublishedValueFallback |