Interface IContentDataFactory<TContentData>
Defines the signature for a component that is responsible for constructing IContentData instances.
Namespace: EPiServer.Construction
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public interface IContentDataFactory<TContentData>
    where TContentData : IContentDataType 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  | 
CreateInstance<TTypedData>()
Creates a new TContentData instance of the type specified by TTypedData.
Declaration
TTypedData CreateInstance<TTypedData>()
    where TTypedData : TContentDataReturns
| Type | Description | 
|---|---|
| TTypedData | A new  | 
Type Parameters
| Name | Description | 
|---|---|
| TTypedData | Type indicating what type of content to create. | 
