Class CompositeModelBinderProvider
- Namespace
- System.Web.Http.ModelBinding.Binders
- Assembly
- System.Web.Http.dll
Represents the class for composite model binder providers.
public sealed class CompositeModelBinderProvider : ModelBinderProvider
- Inheritance
-
CompositeModelBinderProvider
- Inherited Members
Constructors
CompositeModelBinderProvider()
Initializes a new instance of the CompositeModelBinderProvider class.
public CompositeModelBinderProvider()
CompositeModelBinderProvider(IEnumerable<ModelBinderProvider>)
Initializes a new instance of the CompositeModelBinderProvider class.
public CompositeModelBinderProvider(IEnumerable<ModelBinderProvider> providers)
Parameters
providers
IEnumerable<ModelBinderProvider>A collection of ModelBinderProvider
Properties
Providers
Gets the providers for the composite model binder.
public IEnumerable<ModelBinderProvider> Providers { get; }
Property Value
- IEnumerable<ModelBinderProvider>
The collection of providers.
Methods
GetBinder(HttpConfiguration, Type)
Gets the binder for the model.
public override IModelBinder GetBinder(HttpConfiguration configuration, Type modelType)
Parameters
configuration
HttpConfigurationThe binder configuration.
modelType
TypeThe type of the model.
Returns
- IModelBinder
The binder for the model.