Freigeben über


ODataHttpContentExtensions.GetODataMessageReaderAsync Method

 

Namespace:   System.Web.OData.Batch
Assembly:  System.Web.OData (in System.Web.OData.dll)

Overload List

Name Description
System_CAPS_pubmethodSystem_CAPS_static GetODataMessageReaderAsync(HttpContent, ODataMessageReaderSettings)

Gets the ODataMessageReader for the HttpContent stream.

System_CAPS_pubmethodSystem_CAPS_static GetODataMessageReaderAsync(HttpContent, ODataMessageReaderSettings, CancellationToken)

Gets the ODataMessageReader for the HttpContent stream.

See Also

ODataHttpContentExtensions Class
System.Web.OData.Batch Namespace

Return to top

ODataHttpContentExtensions.GetODataMessageReaderAsync Method (HttpContent, ODataMessageReaderSettings)

Gets the ODataMessageReader for the HttpContent stream.

Syntax

public static Task<ODataMessageReader> GetODataMessageReaderAsync(
    this HttpContent content,
    ODataMessageReaderSettings settings
)
public:
[ExtensionAttribute]
static Task<ODataMessageReader^>^ GetODataMessageReaderAsync(
    HttpContent^ content,
    ODataMessageReaderSettings^ settings
)
static member GetODataMessageReaderAsync : 
        content:HttpContent *
        settings:ODataMessageReaderSettings -> Task<ODataMessageReader>
<ExtensionAttribute>
Public Shared Function GetODataMessageReaderAsync (
    content As HttpContent,
    settings As ODataMessageReaderSettings
) As Task(Of ODataMessageReader)

Parameters

Return Value

Type: System.Threading.Tasks.Task<ODataMessageReader>

A task object that produces an ODataMessageReader when completed.

Return to top

ODataHttpContentExtensions.GetODataMessageReaderAsync Method (HttpContent, ODataMessageReaderSettings, CancellationToken)

Gets the ODataMessageReader for the HttpContent stream.

Syntax

[DebuggerStepThroughAttribute]
public static Task<ODataMessageReader> GetODataMessageReaderAsync(
    this HttpContent content,
    ODataMessageReaderSettings settings,
    CancellationToken cancellationToken
)
public:
[DebuggerStepThroughAttribute]
[ExtensionAttribute]
static Task<ODataMessageReader^>^ GetODataMessageReaderAsync(
    HttpContent^ content,
    ODataMessageReaderSettings^ settings,
    CancellationToken cancellationToken
)
[<DebuggerStepThroughAttribute>]
static member GetODataMessageReaderAsync : 
        content:HttpContent *
        settings:ODataMessageReaderSettings *
        cancellationToken:CancellationToken -> Task<ODataMessageReader>
<DebuggerStepThroughAttribute>
<ExtensionAttribute>
Public Shared Function GetODataMessageReaderAsync (
    content As HttpContent,
    settings As ODataMessageReaderSettings,
    cancellationToken As CancellationToken
) As Task(Of ODataMessageReader)

Parameters

Return Value

Type: System.Threading.Tasks.Task<ODataMessageReader>

A task object that produces an ODataMessageReader when completed.

Return to top