FloatModelBinder 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
FloatModelBinder(NumberStyles) |
已淘汰.
此建構函式已經過時,將會在未來版本中移除。 建議的替代方法是也採用 的多 ILoggerFactory 載。 初始化 FloatModelBinder 的新執行個體。 |
FloatModelBinder(NumberStyles, ILoggerFactory) |
初始化 FloatModelBinder 的新執行個體。 |
FloatModelBinder(NumberStyles)
警告
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
- 屬性
適用於
FloatModelBinder(NumberStyles, ILoggerFactory)
初始化 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
- loggerFactory
- ILoggerFactory
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應