Information
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

 

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.

Return to top

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 to top

HttpContentMessageExtensions::ReadAsHttpResponseMessageAsync Method (HttpContent^, Int32)

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.

Return to top

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 to top

HttpContentMessageExtensions::ReadAsHttpResponseMessageAsync Method (HttpContent^, Int32, Int32)

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.

Return to top

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 to top
Show: