DoubleModelBinder 构造函数

定义

重载

DoubleModelBinder(NumberStyles)
已过时.

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

初始化 DoubleModelBinder 的新实例。

DoubleModelBinder(NumberStyles, ILoggerFactory)

初始化 DoubleModelBinder 的新实例。

DoubleModelBinder(NumberStyles)

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

初始化 DoubleModelBinder 的新实例。

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

参数

supportedStyles
NumberStyles

NumberStyles

属性

适用于

DoubleModelBinder(NumberStyles, ILoggerFactory)

Source:
DoubleModelBinder.cs
Source:
DoubleModelBinder.cs
Source:
DoubleModelBinder.cs

初始化 DoubleModelBinder 的新实例。

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

参数

supportedStyles
NumberStyles

NumberStyles

适用于