共用方式為


ModelBinderFactory 建構函式

定義

多載

ModelBinderFactory(IModelMetadataProvider, IOptions<MvcOptions>)
已淘汰.

此建構函式已過時,未來版本將會移除。 建議的替代方案是也採用 IServiceProvider 的多載。

建立新的 ModelBinderFactory

ModelBinderFactory(IModelMetadataProvider, IOptions<MvcOptions>, IServiceProvider)

建立新的 ModelBinderFactory

ModelBinderFactory(IModelMetadataProvider, IOptions<MvcOptions>)

來源:
ModelBinderFactory.cs
來源:
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)

來源:
ModelBinderFactory.cs
來源:
ModelBinderFactory.cs
來源:
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)

參數

serviceProvider
IServiceProvider

IServiceProvider

適用於