Class XFormPostModelBinderProvider
Provider class for creating an System.Web.Mvc.IModelBinder for XFormPostedData models.
Inheritance
System.Object
XFormPostModelBinderProvider
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.XForms
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public class XFormPostModelBinderProvider : IModelBinderProvider
Constructors
XFormPostModelBinderProvider(IServiceLocator)
Initializes a new instance of the XFormPostModelBinderProvider class.
Declaration
public XFormPostModelBinderProvider(IServiceLocator serviceLocator)
Parameters
Type | Name | Description |
---|---|---|
IServiceLocator | serviceLocator | The service locator to use to create providers. |
Methods
GetBinder(Type)
Gets an instance of a XFormPostModelBinder if the requested type inherits from XFormPostedData.
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 XFormPostModelBinder or null if type is not XFormPostedData or an inherited type. |
Implements
System.Web.Mvc.IModelBinderProvider