共用方式為


FloatModelBinder 建構函式

定義

多載

FloatModelBinder(NumberStyles)
已淘汰.

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

初始化 FloatModelBinder 的新執行個體。

FloatModelBinder(NumberStyles, ILoggerFactory)

初始化 FloatModelBinder 的新執行個體。

FloatModelBinder(NumberStyles)

來源:
FloatModelBinder.cs
來源:
FloatModelBinder.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 載。

初始化 FloatModelBinder 的新執行個體。

public:
 FloatModelBinder(System::Globalization::NumberStyles supportedStyles);
public FloatModelBinder (System.Globalization.NumberStyles supportedStyles);
[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 FloatModelBinder (System.Globalization.NumberStyles supportedStyles);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.FloatModelBinder : System.Globalization.NumberStyles -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.FloatModelBinder
[<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.FloatModelBinder : System.Globalization.NumberStyles -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.FloatModelBinder
Public Sub New (supportedStyles As NumberStyles)

參數

supportedStyles
NumberStyles

NumberStyles

屬性

適用於

FloatModelBinder(NumberStyles, ILoggerFactory)

來源:
FloatModelBinder.cs
來源:
FloatModelBinder.cs
來源:
FloatModelBinder.cs

初始化 FloatModelBinder 的新執行個體。

public:
 FloatModelBinder(System::Globalization::NumberStyles supportedStyles, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public FloatModelBinder (System.Globalization.NumberStyles supportedStyles, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.FloatModelBinder : System.Globalization.NumberStyles * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.FloatModelBinder
Public Sub New (supportedStyles As NumberStyles, loggerFactory As ILoggerFactory)

參數

supportedStyles
NumberStyles

NumberStyles

loggerFactory
ILoggerFactory

ILoggerFactory

適用於