London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

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