FloatModelBinder 构造函数

定义

重载

FloatModelBinder(NumberStyles)
已过时.

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

初始化 FloatModelBinder 的新实例。

FloatModelBinder(NumberStyles, ILoggerFactory)

初始化 FloatModelBinder 的新实例。

FloatModelBinder(NumberStyles)

Source:
FloatModelBinder.cs
Source:
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)

Source:
FloatModelBinder.cs
Source:
FloatModelBinder.cs
Source:
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

适用于