HeaderModelBinder 构造函数

定义

重载

HeaderModelBinder()
已过时.

此构造函数已过时,将在将来的版本中删除。 建议的替代方法是采用 ILoggerFactory 和 的 IModelBinder重载。

初始化 HeaderModelBinder 的新实例。

HeaderModelBinder(ILoggerFactory)

初始化 HeaderModelBinder 的新实例。

HeaderModelBinder(ILoggerFactory, IModelBinder)

初始化 HeaderModelBinder 的新实例。

HeaderModelBinder()

Source:
HeaderModelBinder.cs
Source:
HeaderModelBinder.cs

注意

This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that takes an ILoggerFactory and an IModelBinder.

此构造函数已过时,将在将来的版本中删除。 建议的替代方法是采用 ILoggerFactory 和 的 IModelBinder重载。

初始化 HeaderModelBinder 的新实例。

public:
 HeaderModelBinder();
public HeaderModelBinder ();
[System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that takes an ILoggerFactory and an IModelBinder.")]
public HeaderModelBinder ();
Public Sub New ()
属性

适用于

HeaderModelBinder(ILoggerFactory)

Source:
HeaderModelBinder.cs
Source:
HeaderModelBinder.cs
Source:
HeaderModelBinder.cs

初始化 HeaderModelBinder 的新实例。

public:
 HeaderModelBinder(Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public HeaderModelBinder (Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.HeaderModelBinder : Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.HeaderModelBinder
Public Sub New (loggerFactory As ILoggerFactory)

参数

适用于

HeaderModelBinder(ILoggerFactory, IModelBinder)

Source:
HeaderModelBinder.cs
Source:
HeaderModelBinder.cs
Source:
HeaderModelBinder.cs

初始化 HeaderModelBinder 的新实例。

public:
 HeaderModelBinder(Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ innerModelBinder);
public HeaderModelBinder (Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder innerModelBinder);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.HeaderModelBinder : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.HeaderModelBinder
Public Sub New (loggerFactory As ILoggerFactory, innerModelBinder As IModelBinder)

参数

loggerFactory
ILoggerFactory

ILoggerFactory

innerModelBinder
IModelBinder

执行 IModelBinder 值实际绑定的 。

适用于