DecimalModelBinder Constructors

Definition

Overloads

DecimalModelBinder(NumberStyles)
Obsolete.

This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an ILoggerFactory.

Initializes a new instance of DecimalModelBinder.

DecimalModelBinder(NumberStyles, ILoggerFactory)

Initializes a new instance of DecimalModelBinder.

DecimalModelBinder(NumberStyles)

Source:
DecimalModelBinder.cs
Source:
DecimalModelBinder.cs

Caution

This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an ILoggerFactory.

This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an ILoggerFactory.

Initializes a new instance of DecimalModelBinder.

C#
public DecimalModelBinder (System.Globalization.NumberStyles supportedStyles);
C#
[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);

Parameters

supportedStyles
NumberStyles

The NumberStyles.

Attributes

Applies to

ASP.NET Core 2.2 and other versions
Product Versions (Obsolete)
ASP.NET Core 2.0 ( 2.1, 2.2)

DecimalModelBinder(NumberStyles, ILoggerFactory)

Source:
DecimalModelBinder.cs
Source:
DecimalModelBinder.cs
Source:
DecimalModelBinder.cs

Initializes a new instance of DecimalModelBinder.

C#
public DecimalModelBinder (System.Globalization.NumberStyles supportedStyles, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);

Parameters

supportedStyles
NumberStyles

The NumberStyles.

loggerFactory
ILoggerFactory

The ILoggerFactory.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0