KeyValuePairModelBinder<TKey,TValue> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
KeyValuePairModelBinder<TKey,TValue>(IModelBinder, IModelBinder) |
已过时.
此构造函数已过时,将在将来的版本中删除。 建议的替代方法是重载,该重载也采用 ILoggerFactory。 创建一个新的 KeyValuePair<TKey,TValue>。 |
KeyValuePairModelBinder<TKey,TValue>(IModelBinder, IModelBinder, ILoggerFactory) |
创建一个新的 KeyValuePair<TKey,TValue>。 |
KeyValuePairModelBinder<TKey,TValue>(IModelBinder, IModelBinder)
- Source:
- KeyValuePairModelBinder.cs
- Source:
- KeyValuePairModelBinder.cs
注意
This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an ILoggerFactory.
此构造函数已过时,将在将来的版本中删除。 建议的替代方法是重载,该重载也采用 ILoggerFactory。
创建一个新的 KeyValuePair<TKey,TValue>。
public:
KeyValuePairModelBinder(Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ keyBinder, Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ valueBinder);
public KeyValuePairModelBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder keyBinder, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder valueBinder);
[System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an ILoggerFactory.")]
public KeyValuePairModelBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder keyBinder, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder valueBinder);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.KeyValuePairModelBinder<'Key, 'Value> : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder * Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.KeyValuePairModelBinder<'Key, 'Value>
[<System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an ILoggerFactory.")>]
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.KeyValuePairModelBinder<'Key, 'Value> : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder * Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.KeyValuePairModelBinder<'Key, 'Value>
Public Sub New (keyBinder As IModelBinder, valueBinder As IModelBinder)
参数
- keyBinder
- IModelBinder
TKey
的 IModelBinder。
- valueBinder
- IModelBinder
TValue
的 IModelBinder。
- 属性
适用于
KeyValuePairModelBinder<TKey,TValue>(IModelBinder, IModelBinder, ILoggerFactory)
- Source:
- KeyValuePairModelBinder.cs
- Source:
- KeyValuePairModelBinder.cs
- Source:
- KeyValuePairModelBinder.cs
创建一个新的 KeyValuePair<TKey,TValue>。
public:
KeyValuePairModelBinder(Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ keyBinder, Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ valueBinder, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public KeyValuePairModelBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder keyBinder, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder valueBinder, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.KeyValuePairModelBinder<'Key, 'Value> : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder * Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.KeyValuePairModelBinder<'Key, 'Value>
Public Sub New (keyBinder As IModelBinder, valueBinder As IModelBinder, loggerFactory As ILoggerFactory)
参数
- keyBinder
- IModelBinder
TKey
的 IModelBinder。
- valueBinder
- IModelBinder
TValue
的 IModelBinder。
- loggerFactory
- ILoggerFactory