Freigeben über


FormatterParameterBinding.ReadContentAsync Method

Asynchronously reads the content of FormatterParameterBinding.

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

Syntax

'Declaration
Public Overridable Function ReadContentAsync ( _
    request As HttpRequestMessage, _
    type As Type, _
    formatters As IEnumerable(Of MediaTypeFormatter), _
    formatterLogger As IFormatterLogger _
) As Task(Of Object)
'Usage
Dim instance As FormatterParameterBinding 
Dim request As HttpRequestMessage 
Dim type As Type 
Dim formatters As IEnumerable(Of MediaTypeFormatter)
Dim formatterLogger As IFormatterLogger 
Dim returnValue As Task(Of Object)

returnValue = instance.ReadContentAsync(request, _
    type, formatters, formatterLogger)
public virtual Task<Object> ReadContentAsync(
    HttpRequestMessage request,
    Type type,
    IEnumerable<MediaTypeFormatter> formatters,
    IFormatterLogger formatterLogger
)
public:
virtual Task<Object^>^ ReadContentAsync(
    HttpRequestMessage^ request, 
    Type^ type, 
    IEnumerable<MediaTypeFormatter^>^ formatters, 
    IFormatterLogger^ formatterLogger
)
abstract ReadContentAsync : 
        request:HttpRequestMessage * 
        type:Type * 
        formatters:IEnumerable<MediaTypeFormatter> * 
        formatterLogger:IFormatterLogger -> Task<Object> 
override ReadContentAsync : 
        request:HttpRequestMessage * 
        type:Type * 
        formatters:IEnumerable<MediaTypeFormatter> * 
        formatterLogger:IFormatterLogger -> Task<Object> 
public function ReadContentAsync(
    request : HttpRequestMessage, 
    type : Type, 
    formatters : IEnumerable<MediaTypeFormatter>, 
    formatterLogger : IFormatterLogger
) : Task<Object>

Parameters

  • request
    Type: HttpRequestMessage

    The request.

Return Value

Type: System.Threading.Tasks.Task<Object>
The result of the action.

See Also

Reference

FormatterParameterBinding Class

System.Web.Http.ModelBinding Namespace