Class ContentDataModelBinderProvider
Provider class for creating an System.Web.Mvc.IModelBinder for IContentData models.
Inheritance
System.Object
ContentDataModelBinderProvider
Implements
System.Web.Mvc.IModelBinderProvider
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 ContentDataModelBinderProvider : IModelBinderProvider
Constructors
ContentDataModelBinderProvider(IServiceLocator)
Initializes a new instance of the ContentDataValueProviderFactory class.
Declaration
public ContentDataModelBinderProvider(IServiceLocator serviceLocator)
Parameters
Type | Name | Description |
---|---|---|
IServiceLocator | serviceLocator | The service locator to use to create providers. |
Methods
GetBinder(Type)
Gets an instance of a ContentDataModelBinder if the requested type inherits from IContentData.
Declaration
public IModelBinder GetBinder(Type modelType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | modelType | Type of the requested model. |
Returns
Type | Description |
---|---|
System.Web.Mvc.IModelBinder | An instance of ContentDataModelBinder or null if type is not IContentData or an inherited type. |
Implements
System.Web.Mvc.IModelBinderProvider