Share via


SimpleModelBinderProvider Constructor (Type, IModelBinder)

Initializes a new instance of the SimpleModelBinderProvider class by using the specified model type and the model binder.

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

Syntax

'Declaration
Public Sub New ( _
    modelType As Type, _
    modelBinder As IModelBinder _
)
'Usage
Dim modelType As Type
Dim modelBinder As IModelBinder

Dim instance As New SimpleModelBinderProvider(modelType, _
    modelBinder)
public SimpleModelBinderProvider(
    Type modelType,
    IModelBinder modelBinder
)
public:
SimpleModelBinderProvider(
    Type^ modelType, 
    IModelBinder^ modelBinder
)
new : 
        modelType:Type * 
        modelBinder:IModelBinder -> SimpleModelBinderProvider
public function SimpleModelBinderProvider(
    modelType : Type, 
    modelBinder : IModelBinder
)

Parameters

See Also

Reference

SimpleModelBinderProvider Class

SimpleModelBinderProvider Overload

System.Web.Http.ModelBinding.Binders Namespace