KeyValuePairModelBinder<TKey,TValue> Class

Definition

C#
public class KeyValuePairModelBinder<TKey,TValue> : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder

Type Parameters

TKey

The key type.

TValue

The value type.

Inheritance
KeyValuePairModelBinder<TKey,TValue>
Implements

Constructors

KeyValuePairModelBinder<TKey,TValue>(IModelBinder, IModelBinder, ILoggerFactory)

Creates a new KeyValuePair<TKey,TValue>.

KeyValuePairModelBinder<TKey,TValue>(IModelBinder, IModelBinder)
Obsolete.

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

Creates a new KeyValuePair<TKey,TValue>.

Methods

BindModelAsync(ModelBindingContext)

Attempts to bind a model.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0