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 | |
---|---|---|
CompositeModelBinder(IEnumerable<IModelBinder>) | Initializes a new instance of the CompositeModelBinder class. | |
CompositeModelBinder(IModelBinder[]) | Initializes a new instance of the CompositeModelBinder class. |
Top
Methods
Name | Description | |
---|---|---|
BindModel | Indicates whether the specified model is binded. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
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.