The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
HttpContentMessageExtensions::ReadAsHttpResponseMessageAsync Method
Namespace:
System.Net.Http
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
HttpContentMessageExtensions::ReadAsHttpResponseMessageAsync Method (HttpContent^)
Reads the HttpContent as an HttpResponseMessage.
public: [ExtensionAttribute] static Task<HttpResponseMessage^>^ ReadAsHttpResponseMessageAsync( HttpContent^ content )
Parameters
- content
-
Type:
System.Net.Http::HttpContent^
The content to read.
Return Value
Type: System.Threading.Tasks::Task<HttpResponseMessage^>^The parsed HttpResponseMessage instance.
HttpContentMessageExtensions::ReadAsHttpResponseMessageAsync Method (HttpContent^, CancellationToken)
public: [ExtensionAttribute] static Task<HttpResponseMessage^>^ ReadAsHttpResponseMessageAsync( HttpContent^ content, CancellationToken cancellationToken )
Parameters
- content
- Type: System.Net.Http::HttpContent^
- cancellationToken
- Type: System.Threading::CancellationToken
Return Value
Type: System.Threading.Tasks::Task<HttpResponseMessage^>^HttpContentMessageExtensions::ReadAsHttpResponseMessageAsync Method (HttpContent^, Int32)
Reads the HttpContent as an HttpResponseMessage.
public: [ExtensionAttribute] static Task<HttpResponseMessage^>^ ReadAsHttpResponseMessageAsync( HttpContent^ content, int bufferSize )
Parameters
- content
-
Type:
System.Net.Http::HttpContent^
The content to read.
- bufferSize
-
Type:
System::Int32
The size of the buffer.
Return Value
Type: System.Threading.Tasks::Task<HttpResponseMessage^>^The parsed HttpResponseMessage instance.
HttpContentMessageExtensions::ReadAsHttpResponseMessageAsync Method (HttpContent^, Int32, CancellationToken)
public: [ExtensionAttribute] static Task<HttpResponseMessage^>^ ReadAsHttpResponseMessageAsync( HttpContent^ content, int bufferSize, CancellationToken cancellationToken )
Parameters
- content
- Type: System.Net.Http::HttpContent^
- bufferSize
- Type: System::Int32
- cancellationToken
- Type: System.Threading::CancellationToken
Return Value
Type: System.Threading.Tasks::Task<HttpResponseMessage^>^HttpContentMessageExtensions::ReadAsHttpResponseMessageAsync Method (HttpContent^, Int32, Int32)
Reads the HttpContent as an HttpResponseMessage.
public: [ExtensionAttribute] static Task<HttpResponseMessage^>^ ReadAsHttpResponseMessageAsync( HttpContent^ content, int bufferSize, int maxHeaderSize )
Parameters
- content
-
Type:
System.Net.Http::HttpContent^
The content to read.
- bufferSize
-
Type:
System::Int32
The size of the buffer.
- maxHeaderSize
-
Type:
System::Int32
The maximum length of the HTTP header.
Return Value
Type: System.Threading.Tasks::Task<HttpResponseMessage^>^The parsed HttpResponseMessage instance.
HttpContentMessageExtensions::ReadAsHttpResponseMessageAsync Method (HttpContent^, Int32, Int32, CancellationToken)
public: [ExtensionAttribute] static Task<HttpResponseMessage^>^ ReadAsHttpResponseMessageAsync( HttpContent^ content, int bufferSize, int maxHeaderSize, CancellationToken cancellationToken )
Parameters
- content
- Type: System.Net.Http::HttpContent^
- bufferSize
- Type: System::Int32
- maxHeaderSize
- Type: System::Int32
- cancellationToken
- Type: System.Threading::CancellationToken
Return Value
Type: System.Threading.Tasks::Task<HttpResponseMessage^>^
Show:

