FromHeaderAttribute Class

Specifies that a parameter or property should be bound using the request headers.

Namespace
Microsoft.AspNetCore.Mvc
Assemblies
  • Microsoft.AspNetCore.Mvc.Core

Syntax

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public class FromHeaderAttribute : Attribute, _Attribute, IBindingSourceMetadata, IModelNameProvider
class Microsoft.AspNetCore.Mvc.FromHeaderAttribute

Properties

Microsoft.AspNetCore.Mvc.FromHeaderAttribute.BindingSource
Return type:Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource
public BindingSource BindingSource { get; }
Microsoft.AspNetCore.Mvc.FromHeaderAttribute.Name
Return type:System.String
public string Name { get; set; }