FormatterParameterBinding Class

 

Represents parameter binding that will read from the body and invoke the formatters.

Namespace:   System.Web.Http.ModelBinding
Assembly:  System.Web.Http (in System.Web.Http.dll)

Inheritance Hierarchy

System.Object
  System.Web.Http.Controllers.HttpParameterBinding
    System.Web.Http.ModelBinding.FormatterParameterBinding

Syntax

public class FormatterParameterBinding : HttpParameterBinding
public ref class FormatterParameterBinding : HttpParameterBinding
type FormatterParameterBinding = 
    class
        inherit HttpParameterBinding
    end
Public Class FormatterParameterBinding
    Inherits HttpParameterBinding

Constructors

Name Description
System_CAPS_pubmethod FormatterParameterBinding(HttpParameterDescriptor, IEnumerable<MediaTypeFormatter>, IBodyModelValidator)

Initializes a new instance of the FormatterParameterBinding class.

Properties

Name Description
System_CAPS_pubproperty BodyModelValidator

Gets or sets an interface for the body model validator.

System_CAPS_pubproperty Descriptor

Gets the HttpParameterDescriptor that was used to initialize this instance.(Inherited from HttpParameterBinding.)

System_CAPS_pubproperty ErrorMessage

Gets the error message.(Overrides HttpParameterBinding.ErrorMessage.)

System_CAPS_pubproperty Formatters

Gets or sets an enumerable object that represents the formatter for the parameter binding.

System_CAPS_pubproperty IsValid

Gets a value that indicates whether the binding was successful.(Inherited from HttpParameterBinding.)

System_CAPS_pubproperty WillReadBody

Gets whether the FormatterParameterBindingwill read body.(Overrides HttpParameterBinding.WillReadBody.)

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod ExecuteBindingAsync(ModelMetadataProvider, HttpActionContext, CancellationToken)

Asynchronously execute the binding of FormatterParameterBinding.(Overrides HttpParameterBinding.ExecuteBindingAsync(ModelMetadataProvider, HttpActionContext, CancellationToken).)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod GetValue(HttpActionContext)

Gets the parameter value from argument dictionary of the action context.(Inherited from HttpParameterBinding.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ReadContentAsync(HttpRequestMessage, Type, IEnumerable<MediaTypeFormatter>, IFormatterLogger)

Asynchronously reads the content of FormatterParameterBinding.

System_CAPS_pubmethod ReadContentAsync(HttpRequestMessage, Type, IEnumerable<MediaTypeFormatter>, IFormatterLogger, CancellationToken)

System_CAPS_protmethod SetValue(HttpActionContext, Object)

Sets the result of this parameter binding in the argument dictionary of the action context. (Inherited from HttpParameterBinding.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.Http.ModelBinding Namespace

Return to top