ParameterBinder 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ParameterBinder(IModelMetadataProvider, IModelBinderFactory, IObjectModelValidator) |
已淘汰.
此建構函式已過時,未來版本將會移除。 建議的替代方法是採用 MvcOptions 存取子和 ILoggerFactory 的多載。 初始化 ParameterBinder 的新執行個體。 |
ParameterBinder(IModelMetadataProvider, IModelBinderFactory, IObjectModelValidator, IOptions<MvcOptions>, ILoggerFactory) |
初始化 ParameterBinder 的新執行個體。 |
ParameterBinder(IModelMetadataProvider, IModelBinderFactory, IObjectModelValidator)
警告
This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes a MvcOptions accessor and an ILoggerFactory .
此建構函式已過時,未來版本將會移除。 建議的替代方法是採用 MvcOptions 存取子和 ILoggerFactory 的多載。
初始化 ParameterBinder 的新執行個體。
public:
ParameterBinder(Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ modelMetadataProvider, Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinderFactory ^ modelBinderFactory, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::IObjectModelValidator ^ validator);
public ParameterBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderFactory modelBinderFactory, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IObjectModelValidator validator);
[System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes a MvcOptions accessor and an ILoggerFactory .")]
public ParameterBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderFactory modelBinderFactory, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IObjectModelValidator validator);
new Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderFactory * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IObjectModelValidator -> Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder
[<System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes a MvcOptions accessor and an ILoggerFactory .")>]
new Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderFactory * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IObjectModelValidator -> Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder
Public Sub New (modelMetadataProvider As IModelMetadataProvider, modelBinderFactory As IModelBinderFactory, validator As IObjectModelValidator)
參數
- modelMetadataProvider
- IModelMetadataProvider
- modelBinderFactory
- IModelBinderFactory
- validator
- IObjectModelValidator
- 屬性
適用於
ParameterBinder(IModelMetadataProvider, IModelBinderFactory, IObjectModelValidator, IOptions<MvcOptions>, ILoggerFactory)
初始化 ParameterBinder 的新執行個體。
public:
ParameterBinder(Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ modelMetadataProvider, Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinderFactory ^ modelBinderFactory, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::IObjectModelValidator ^ validator, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::MvcOptions ^> ^ mvcOptions, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public ParameterBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderFactory modelBinderFactory, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IObjectModelValidator validator, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> mvcOptions, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderFactory * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IObjectModelValidator * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder
Public Sub New (modelMetadataProvider As IModelMetadataProvider, modelBinderFactory As IModelBinderFactory, validator As IObjectModelValidator, mvcOptions As IOptions(Of MvcOptions), loggerFactory As ILoggerFactory)
參數
- modelMetadataProvider
- IModelMetadataProvider
- modelBinderFactory
- IModelBinderFactory
- validator
- IObjectModelValidator
- mvcOptions
- IOptions<MvcOptions>
存取 MvcOptions 子。
- loggerFactory
- ILoggerFactory
備註
參數 mvcOptions
目前會被忽略。