ModelBinderFactory 构造函数

定义

重载

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))

参数

属性

适用于

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)

参数

适用于