ModelBinderFactory Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ModelBinderFactory(IModelMetadataProvider, IOptions<MvcOptions>) |
Obsolete.
This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an IServiceProvider. Creates a new ModelBinderFactory. |
ModelBinderFactory(IModelMetadataProvider, IOptions<MvcOptions>, IServiceProvider) |
Creates a new ModelBinderFactory. |
ModelBinderFactory(IModelMetadataProvider, IOptions<MvcOptions>)
- Source:
- ModelBinderFactory.cs
- Source:
- ModelBinderFactory.cs
Caution
This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an IServiceProvider.
This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an IServiceProvider.
Creates a new ModelBinderFactory.
public:
ModelBinderFactory(Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ metadataProvider, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::MvcOptions ^> ^ options);
public ModelBinderFactory (Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> options);
[System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an IServiceProvider.")]
public ModelBinderFactory (Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> options);
new Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactory : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactory
[<System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an IServiceProvider.")>]
new Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactory : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactory
Public Sub New (metadataProvider As IModelMetadataProvider, options As IOptions(Of MvcOptions))
Parameters
- metadataProvider
- IModelMetadataProvider
- options
- IOptions<MvcOptions>
The IOptions<TOptions> for MvcOptions.
- Attributes
Applies to
ModelBinderFactory(IModelMetadataProvider, IOptions<MvcOptions>, IServiceProvider)
- Source:
- ModelBinderFactory.cs
- Source:
- ModelBinderFactory.cs
- Source:
- ModelBinderFactory.cs
Creates a new ModelBinderFactory.
public:
ModelBinderFactory(Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ metadataProvider, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::MvcOptions ^> ^ options, IServiceProvider ^ serviceProvider);
public ModelBinderFactory (Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> options, IServiceProvider serviceProvider);
new Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactory : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> * IServiceProvider -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactory
Public Sub New (metadataProvider As IModelMetadataProvider, options As IOptions(Of MvcOptions), serviceProvider As IServiceProvider)
Parameters
- metadataProvider
- IModelMetadataProvider
- options
- IOptions<MvcOptions>
The IOptions<TOptions> for MvcOptions.
- serviceProvider
- IServiceProvider
The IServiceProvider.