CompositeModelBinder Class

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

Inheritance Hierarchy

System.Object
  System.Web.Http.ModelBinding.Binders.CompositeModelBinder

Namespace:  System.Web.Http.ModelBinding.Binders
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Class CompositeModelBinder _
    Implements IModelBinder
'Usage
Dim instance As CompositeModelBinder
public class CompositeModelBinder : IModelBinder
public ref class CompositeModelBinder : IModelBinder
type CompositeModelBinder =  
    class
        interface IModelBinder
    end
public class CompositeModelBinder implements IModelBinder

The CompositeModelBinder type exposes the following members.

Constructors

  Name Description
Public method CompositeModelBinder(IEnumerable<IModelBinder>) Initializes a new instance of the CompositeModelBinder class.
Public method CompositeModelBinder(IModelBinder[]) Initializes a new instance of the CompositeModelBinder class.

Top

Methods

  Name Description
Public method BindModel Indicates whether the specified model is binded.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Remarks

If no binder is available and the ModelBindingContext allows it, this class tries to find a binder using an empty prefix.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Http.ModelBinding.Binders Namespace