HeaderModelBinder Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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, IModelBinder) |
Initializes a new instance of HeaderModelBinder. |
HeaderModelBinder(ILoggerFactory) |
Initializes a new instance of HeaderModelBinder. |
Methods
BindModelAsync(ModelBindingContext) |
Attempts to bind a model. |