Class HttpPostedFileBaseModelBinder
Binds a model to a posted file.
public class HttpPostedFileBaseModelBinder : IModelBinder
- Inheritance
-
HttpPostedFileBaseModelBinder
- Implements
- Inherited Members
Constructors
HttpPostedFileBaseModelBinder()
Initializes a new instance of the HttpPostedFileBaseModelBinder class.
public HttpPostedFileBaseModelBinder()
Methods
BindModel(ControllerContext, ModelBindingContext)
Binds the model.
public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
Parameters
controllerContext
ControllerContextThe controller context.
bindingContext
ModelBindingContextThe binding context.
Returns
- object
The bound value.ImplementsBindModel(ControllerContext, ModelBindingContext)
Exceptions
- ArgumentNullException
One or both parameters are null.