Class ContentDataModelBinderProvider
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
public class ContentDataModelBinderProvider : IModelBinderProvider
Constructors
ContentDataModelBinderProvider(IServiceLocator)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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