Class PublishedContentExtensionsForModels
Provides strongly typed published content models services.
Inheritance
System.Object
Namespace: Umbraco.Extensions
Assembly: Umbraco.Core.dll
Syntax
public static class PublishedContentExtensionsForModels
Methods
View SourceCreateModel(IPublishedContent, IPublishedModelFactory)
Creates a strongly typed published content model for an internal published content.
Declaration
public static IPublishedContent CreateModel(this IPublishedContent content, IPublishedModelFactory publishedModelFactory)
Parameters
Type | Name | Description |
---|---|---|
IPublishedContent | content | The internal published content. |
IPublishedModelFactory | publishedModelFactory | The published model factory |
Returns
Type | Description |
---|---|
IPublishedContent | The strongly typed published content model. |