Delen via


DecimalModelBinder Class

Definition

An IModelBinder for Decimal and Nullable<T> where T is Decimal.

public ref class DecimalModelBinder : Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder
public class DecimalModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder
type DecimalModelBinder = class
    interface IModelBinder
Public Class DecimalModelBinder
Implements IModelBinder
Inheritance
DecimalModelBinder
Implements

Constructors

DecimalModelBinder(NumberStyles, ILoggerFactory)

Initializes a new instance of DecimalModelBinder.

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.

Methods

BindModelAsync(ModelBindingContext)

Attempts to bind a model.

Applies to