Table of Contents

Class HttpPostedFileBaseModelBinder

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

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 ControllerContext

The controller context.

bindingContext ModelBindingContext

The binding context.

Returns

object

The bound value.ImplementsBindModel(ControllerContext, ModelBindingContext)

Exceptions

ArgumentNullException

One or both parameters are null.