ODataHttpContentExtensions.GetODataMessageReaderAsync Method
Namespace: System.Web.Http.OData.Batch
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
Name | Description | |
---|---|---|
GetODataMessageReaderAsync(HttpContent, ODataMessageReaderSettings) | Gets the ODataMessageReader for the HttpContent stream. |
|
GetODataMessageReaderAsync(HttpContent, ODataMessageReaderSettings, CancellationToken) | Gets the ODataMessageReader for the HttpContent stream. |
See Also
ODataHttpContentExtensions Class
System.Web.Http.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
content
Type: System.Net.Http.HttpContentThe HttpContent.
settings
Type: Microsoft.Data.OData.ODataMessageReaderSettings
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
content
Type: System.Net.Http.HttpContentThe HttpContent.
settings
Type: Microsoft.Data.OData.ODataMessageReaderSettings
cancellationToken
Type: System.Threading.CancellationTokenThe token to monitor for cancellation requests.
Return Value
Type: System.Threading.Tasks.Task<ODataMessageReader>
A task object that produces an ODataMessageReader when completed.
Return to top