Share via


ParameterBinder Class

Definition

Binds and validates models specified by a ParameterDescriptor.

public ref class ParameterBinder
public class ParameterBinder
type ParameterBinder = class
Public Class ParameterBinder
Inheritance
ParameterBinder

Constructors

ParameterBinder(IModelMetadataProvider, IModelBinderFactory, IObjectModelValidator, IOptions<MvcOptions>, ILoggerFactory)

Initializes a new instance of ParameterBinder.

ParameterBinder(IModelMetadataProvider, IModelBinderFactory, IObjectModelValidator)
Obsolete.

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

Initializes a new instance of ParameterBinder.

Properties

Logger

The ILogger used for logging in this binder.

Methods

BindModelAsync(ActionContext, IModelBinder, IValueProvider, ParameterDescriptor, ModelMetadata, Object, Object)

Binds a model specified by parameter using value as the initial value.

BindModelAsync(ActionContext, IModelBinder, IValueProvider, ParameterDescriptor, ModelMetadata, Object)

Binds a model specified by parameter using value as the initial value.

BindModelAsync(ActionContext, IValueProvider, ParameterDescriptor, Object)
Obsolete.

This method overload is obsolete and will be removed in a future version. The recommended alternative is BindModelAsync(ActionContext, IModelBinder, IValueProvider, ParameterDescriptor, ModelMetadata, Object).

Binds a model specified by parameter using value as the initial value.

BindModelAsync(ActionContext, IValueProvider, ParameterDescriptor)
Obsolete.

This method overload is obsolete and will be removed in a future version. The recommended alternative is BindModelAsync(ActionContext, IModelBinder, IValueProvider, ParameterDescriptor, ModelMetadata, Object).

Initializes and binds a model specified by parameter.

Applies to