Table of Contents

Class CompositeModelBinder

Namespace
System.Web.Http.ModelBinding.Binders
Assembly
System.Web.Http.dll

Represents an IModelBinder that delegates to one of a collection of ModelBinderProvider instances.

public class CompositeModelBinder : IModelBinder
Inheritance
CompositeModelBinder
Implements
Inherited Members

Constructors

CompositeModelBinder(IEnumerable<IModelBinder>)

Initializes a new instance of the CompositeModelBinder class.

public CompositeModelBinder(IEnumerable<IModelBinder> binders)

Parameters

binders IEnumerable<IModelBinder>

An enumeration of binders.

CompositeModelBinder(params IModelBinder[])

Initializes a new instance of the CompositeModelBinder class.

public CompositeModelBinder(params IModelBinder[] binders)

Parameters

binders IModelBinder[]

An array of binders.

Methods

BindModel(HttpActionContext, ModelBindingContext)

Indicates whether the specified model is binded.

public virtual bool BindModel(HttpActionContext actionContext, ModelBindingContext bindingContext)

Parameters

actionContext HttpActionContext

The action context.

bindingContext ModelBindingContext

The binding context.

Returns

bool

true if the model is binded; otherwise, false.