Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Interface IContentDataActivator

Describes the methods needed to resolve a IContentData type from a type parameter.

Namespace: EPiServer.DataAbstraction.RuntimeModel
Assembly: EPiServer.dll
Version: 7.19.2
Syntax
public interface IContentDataActivator
Remarks

This interface is used by ContentDataInterceptorHandler.

Examples

The following code example demonstrates how to implement IModelTypeResolver.

Methods

Create(Type)

Resolves a IContentData instance from the specified model type.

Declaration
IContentData Create(Type modelType)
Parameters
Type Name Description
System.Type modelType

Type of IContentData that should be resolved.

Returns
Type Description
IContentData

A new instance of the specified type.

Create<T>()

Resolves a ContentData instance from the specified type T passed to this instance.

Declaration
T Create<T>()

    where T : class, IContentData
Returns
Type Description
T

A new instance of type T.

Type Parameters
Name Description
T

Type of IContentData that should be resolved.

Extension Methods