HttpContent::LoadIntoBufferAsync Method (Int64)
.NET Framework (current version)
Serialize the HTTP content to a memory buffer as an asynchronous operation.
Assembly: System.Net.Http (in System.Net.Http.dll)
Parameters
- maxBufferSize
-
Type:
System::Int64
The maximum size, in bytes, of the buffer to use.
Return Value
Type: System.Threading.Tasks::Task^The task object representing the asynchronous operation.
This operation will not block. The returned Task object will complete after all of the content has been serialized to the memory buffer.
After content is serialized to a memory buffer, calls to one of the CopyToAsync methods will copy the content of the memory buffer to the target stream.
If the content exceeds the value passed in the maxBufferSize parameter , an exception is thrown.
Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Show: