November Happy Hour will be moved to Thursday December 5th.

Interface IContentDataFactory<TContentData>

Defines the signature for a component that is responsible for constructing IContentData instances.

Namespace: EPiServer.Construction
Assembly: EPiServer.dll
Version: 10.10.4
Syntax
public interface IContentDataFactory<TContentData>
    where TContentData : IContentData
Type Parameters
Name Description
TContentData

The type of the ContentData to create.

Methods

CreateInstance(ContentType)

Creates a new TContentData instance of the specified content type.

Declaration
TContentData CreateInstance(ContentType contentType)
Parameters
Type Name Description
ContentType contentType

Type indicating what type of content to create.

Returns
Type Description
TContentData

A new TContentData instance.

CreateInstance<TTypedData>()

Creates a new TContentData instance of the type specified by TTypedData.

Declaration
TTypedData CreateInstance<TTypedData>()
    where TTypedData : TContentData
Returns
Type Description
TTypedData

A new TTypedData instance.

Type Parameters
Name Description
TTypedData

Type indicating what type of content to create.

Extension Methods