Interface IContentFactory
Factory class for creating IContent instances according to the ContentType.
Namespace: EPiServer.Construction
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public interface IContentFactory
Methods
CreateContent(ContentType, BuildingContext)
Creates an IContent instance and populates the instance with properties according to the passed in ContentType.
Declaration
IContent CreateContent(ContentType contentType, BuildingContext buildingContext)
Parameters
Type | Name | Description |
---|---|---|
ContentType | contentType | The type of content that should be created. |
BuildingContext | buildingContext | The building context that decides how default values and inherited values should be set. |
Returns
Type | Description |
---|---|
IContent | A new IContent instance. |