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

Class ContentDataValueProviderFactory

Factory class used to create a ContentDataValueProvider.

Inheritance
System.Object
ContentDataValueProviderFactory
Namespace: EPiServer.Web.Mvc
Assembly: EPiServer.dll
Version: 7.19.2
Syntax
public class ContentDataValueProviderFactory : ValueProviderFactory

Constructors

ContentDataValueProviderFactory(ViewContentRetriever)

Initializes a new instance of the ContentDataValueProviderFactory class.

Declaration
public ContentDataValueProviderFactory(ViewContentRetriever viewContentRetriever)
Parameters
Type Name Description
ViewContentRetriever viewContentRetriever

The view content retriever.

Methods

GetValueProvider(ControllerContext)

Gets an instance of a ContentDataValueProvider.

Declaration
public override IValueProvider GetValueProvider(ControllerContext controllerContext)
Parameters
Type Name Description
System.Web.Mvc.ControllerContext controllerContext

The current controller context.

Returns
Type Description
System.Web.Mvc.IValueProvider

An ContentDataValueProvider instance.

Extension Methods