HeaderModelBinder Class

Summary

An [Microsoft.AspNet.Mvc.ModelBinding.IModelBinder]() which binds models from the request headers when a model has the binding source [Microsoft.AspNet.Mvc.ModelBinding.BindingSource.Header]()/

Syntax

public class HeaderModelBinder : BindingSourceModelBinder, IModelBinder

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.ModelBinding.HeaderModelBinder

Constructors

Microsoft.AspNet.Mvc.ModelBinding.HeaderModelBinder.HeaderModelBinder()

Creates a new [Microsoft.AspNet.Mvc.ModelBinding.HeaderModelBinder](Microsoft.AspNet.Mvc.ModelBinding.HeaderModelBinder.yml).

public HeaderModelBinder()

Methods

BindModelCoreAsync(Microsoft.AspNet.Mvc.ModelBinding.ModelBindingContext)
Arguments:
Return type:

System.Threading.Tasks.Task{Microsoft.AspNet.Mvc.ModelBinding.ModelBindingResult}

protected override Task<ModelBindingResult> BindModelCoreAsync(ModelBindingContext bindingContext)