ODataHttpContentExtensions.GetODataMessageReaderAsync Method (HttpContent, ODataMessageReaderSettings)

Gets the ODataMessageReader for the HttpContent stream.

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

public static Task<ODataMessageReader> GetODataMessageReaderAsync(
	this HttpContent content,
	ODataMessageReaderSettings settings
)

Parameters

content
Type: HttpContent
The HttpContent.
settings
Type: Microsoft.OData.Core.ODataMessageReaderSettings
The ODataMessageReaderSettings.

Return Value

Type: System.Threading.Tasks.Task<ODataMessageReader>
A task object that produces an ODataMessageReader when completed.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HttpContent. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/vstudio/bb384936 or https://msdn.microsoft.com/en-us/library/vstudio/bb383977.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft