Class ContentDataModelBinder

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Model binder for IContentData.

Inheritance
System.Object
ContentDataModelBinder
Implements
System.Web.Mvc.IModelBinder
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Mvc.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(IncludeServiceAccessor = false)]
public class ContentDataModelBinder : IModelBinder

Constructors

ContentDataModelBinder(IViewContentRetriever, IExceptionManager)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the ContentDataModelBinder class.

Declaration
public ContentDataModelBinder(IViewContentRetriever viewContentRetriever, IExceptionManager exceptionManager)
Parameters
Type Name Description
IViewContentRetriever viewContentRetriever

The view page retriever.

IExceptionManager exceptionManager

The exception manager.

Methods

BindModel(ControllerContext, ModelBindingContext)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Binds the model of PageData types.

Declaration
public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
Parameters
Type Name Description
System.Web.Mvc.ControllerContext controllerContext

The controller context.

System.Web.Mvc.ModelBindingContext bindingContext

The binding context.

Returns
Type Description
System.Object

PageData object or null if not found.

Exceptions
Type Condition
TypeMismatchException

Thrown if the retrieved page does not match the requested argument type.

Implements

System.Web.Mvc.IModelBinder

Extension Methods