Class ContentDataModelBinder
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
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public class ContentDataModelBinder : IModelBinder
Constructors
ContentDataModelBinder(ViewContentRetriever, IExceptionManager)
Initializes a new instance of the ContentDataModelBinder class.
Declaration
public ContentDataModelBinder(ViewContentRetriever viewContentRetriever, IExceptionManager exceptionManager)
Parameters
Type | Name | Description |
---|---|---|
ViewContentRetriever | viewContentRetriever | The view page retriever. |
IExceptionManager | exceptionManager | The exception manager. |
Methods
BindModel(ControllerContext, ModelBindingContext)
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