Class ContentFactoryExtensions

Extension methods for IContentFactory instances.

Inheritance
System.Object
ContentFactoryExtensions
Namespace: EPiServer.Construction
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public static class ContentFactoryExtensions : Object

Methods

CreateContent(IContentFactory, ContentType)

Creates an IContent instance and populates the instance with properties according to the passed in ContentType.

Declaration
public static IContent CreateContent(this IContentFactory contentFactory, ContentType contentType)
Parameters
Type Name Description
IContentFactory contentFactory

The content factory this method extends

ContentType contentType

The type of content that should be created.

Returns
Type Description
IContent

A new IContent instance.