Interface IContentDataFactory<TContentData>
Defines the signature for a component that is responsible for constructing IContentData instances.
Namespace: EPiServer.Construction
Assembly: EPiServer.dll
Version: 12.0.3Syntax
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 |
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 |
Type Parameters
Name | Description |
---|---|
TTypedData | Type indicating what type of content to create. |