HeaderModelBinder Class

Definition

An IModelBinder which binds models from the request headers when a model has the binding source Header.

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

Constructors

HeaderModelBinder()
Obsolete.

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

Initializes a new instance of HeaderModelBinder.

HeaderModelBinder(ILoggerFactory)

Initializes a new instance of HeaderModelBinder.

HeaderModelBinder(ILoggerFactory, IModelBinder)

Initializes a new instance of HeaderModelBinder.

Methods

BindModelAsync(ModelBindingContext)

Attempts to bind a model.

Applies to