SimpleModelBinderProvider Constructor (Type, Func<IModelBinder>)
Initializes a new instance of the SimpleModelBinderProvider class.
Namespace: System.Web.Http.ModelBinding.Binders
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Sub New ( _
modelType As Type, _
modelBinderFactory As Func(Of IModelBinder) _
)
'Usage
Dim modelType As Type
Dim modelBinderFactory As Func(Of IModelBinder)
Dim instance As New SimpleModelBinderProvider(modelType, _
modelBinderFactory)
public SimpleModelBinderProvider(
Type modelType,
Func<IModelBinder> modelBinderFactory
)
public:
SimpleModelBinderProvider(
Type^ modelType,
Func<IModelBinder^>^ modelBinderFactory
)
new :
modelType:Type *
modelBinderFactory:Func<IModelBinder> -> SimpleModelBinderProvider
public function SimpleModelBinderProvider(
modelType : Type,
modelBinderFactory : Func<IModelBinder>
)
Parameters
modelType
Type: System.TypeThe model type.
modelBinderFactory
Type: System.Func<IModelBinder>The model binder factory.
See Also
Reference
SimpleModelBinderProvider Class