ODataHttpContentExtensions.GetODataMessageReaderAsync Method (HttpContent, ODataMessageReaderSettings)

Gets the ODataMessageReader for the HttpContent stream.

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

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


Type: HttpContent
The HttpContent.
Type: 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/bb384936 or https://msdn.microsoft.com/en-us/library/bb383977.