ModelBinderFactory 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ModelBinderFactory(IModelMetadataProvider, IOptions<MvcOptions>) |
已过时.
此构造函数已过时,将在将来的版本中删除。 建议的替代方法是重载,该重载也采用 IServiceProvider。 创建一个新的 ModelBinderFactory。 |
ModelBinderFactory(IModelMetadataProvider, IOptions<MvcOptions>, IServiceProvider) |
创建一个新的 ModelBinderFactory。 |
ModelBinderFactory(IModelMetadataProvider, IOptions<MvcOptions>)
- Source:
- ModelBinderFactory.cs
- Source:
- ModelBinderFactory.cs
注意
This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an IServiceProvider.
此构造函数已过时,将在将来的版本中删除。 建议的替代方法是重载,该重载也采用 IServiceProvider。
创建一个新的 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))
参数
- metadataProvider
- IModelMetadataProvider
- options
- IOptions<MvcOptions>
- 属性
适用于
ModelBinderFactory(IModelMetadataProvider, IOptions<MvcOptions>, IServiceProvider)
- Source:
- ModelBinderFactory.cs
- Source:
- ModelBinderFactory.cs
- Source:
- ModelBinderFactory.cs
创建一个新的 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)
参数
- metadataProvider
- IModelMetadataProvider
- options
- IOptions<MvcOptions>
- serviceProvider
- IServiceProvider