FromBodyAttribute Class

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

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

Syntax

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

Properties

Microsoft.AspNetCore.Mvc.FromBodyAttribute.BindingSource
Return type:Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource
public BindingSource BindingSource { get; }