FromFormAttribute Class

Specifies that a parameter or property should be bound using form-data in the request body.

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

Syntax

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

Properties

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