共用方式為


DecimalModelBinder 建構函式

定義

多載

DecimalModelBinder(NumberStyles)
已淘汰.

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

初始化 DecimalModelBinder 的新執行個體。

DecimalModelBinder(NumberStyles, ILoggerFactory)

初始化 DecimalModelBinder 的新執行個體。

DecimalModelBinder(NumberStyles)

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

初始化 DecimalModelBinder 的新執行個體。

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

參數

supportedStyles
NumberStyles

NumberStyles

屬性

適用於

DecimalModelBinder(NumberStyles, ILoggerFactory)

來源:
DecimalModelBinder.cs
來源:
DecimalModelBinder.cs
來源:
DecimalModelBinder.cs

初始化 DecimalModelBinder 的新執行個體。

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

參數

supportedStyles
NumberStyles

NumberStyles

loggerFactory
ILoggerFactory

ILoggerFactory

適用於