Table of Contents

Class FromBodyAttribute

Namespace
System.Web.Http
Assembly
System.Web.Http.dll

An attribute that specifies that an action parameter comes only from the entity body of the incoming HttpRequestMessage.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Parameter, Inherited = true, AllowMultiple = false)]
public sealed class FromBodyAttribute : ParameterBindingAttribute
Inheritance
FromBodyAttribute
Inherited Members

Constructors

FromBodyAttribute()

Initializes a new instance of the FromBodyAttribute class.

public FromBodyAttribute()

Methods

GetBinding(HttpParameterDescriptor)

Gets a parameter binding.

public override HttpParameterBinding GetBinding(HttpParameterDescriptor parameter)

Parameters

parameter HttpParameterDescriptor

The parameter description.

Returns

HttpParameterBinding

The parameter binding.