共用方式為


HeaderModelBinder 建構函式

定義

多載

HeaderModelBinder()
已淘汰.

此建構函式已經過時,將會在未來版本中移除。 建議的替代方法是採用 ILoggerFactoryIModelBinder 的多載。

初始化 HeaderModelBinder 的新執行個體。

HeaderModelBinder(ILoggerFactory)

初始化 HeaderModelBinder 的新執行個體。

HeaderModelBinder(ILoggerFactory, IModelBinder)

初始化 HeaderModelBinder 的新執行個體。

HeaderModelBinder()

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

此建構函式已經過時,將會在未來版本中移除。 建議的替代方法是採用 ILoggerFactoryIModelBinder 的多載。

初始化 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)

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

參數

loggerFactory
ILoggerFactory

ILoggerFactory

適用於

HeaderModelBinder(ILoggerFactory, IModelBinder)

來源:
HeaderModelBinder.cs
來源:
HeaderModelBinder.cs
來源:
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 其會執行值的實際系結。

適用於