HttpContent.LoadIntoBufferAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Serialize the HTTP content to a memory buffer as an asynchronous operation.
Overloads
LoadIntoBufferAsync(Int64) |
Serialize the HTTP content to a memory buffer as an asynchronous operation. |
LoadIntoBufferAsync() |
Serialize the HTTP content to a memory buffer as an asynchronous operation. |
Remarks
This operation will not block.
LoadIntoBufferAsync(Int64)
- Source:
- HttpContent.cs
- Source:
- HttpContent.cs
- Source:
- HttpContent.cs
Serialize the HTTP content to a memory buffer as an asynchronous operation.
public:
System::Threading::Tasks::Task ^ LoadIntoBufferAsync(long maxBufferSize);
public System.Threading.Tasks.Task LoadIntoBufferAsync (long maxBufferSize);
member this.LoadIntoBufferAsync : int64 -> System.Threading.Tasks.Task
Public Function LoadIntoBufferAsync (maxBufferSize As Long) As Task
Parameters
- maxBufferSize
- Int64
The maximum size, in bytes, of the buffer to use.
Returns
The task object representing the asynchronous operation.
Remarks
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.
Applies to
LoadIntoBufferAsync()
- Source:
- HttpContent.cs
- Source:
- HttpContent.cs
- Source:
- HttpContent.cs
Serialize the HTTP content to a memory buffer as an asynchronous operation.
public:
System::Threading::Tasks::Task ^ LoadIntoBufferAsync();
public System.Threading.Tasks.Task LoadIntoBufferAsync ();
member this.LoadIntoBufferAsync : unit -> System.Threading.Tasks.Task
Public Function LoadIntoBufferAsync () As Task
Returns
The task object representing the asynchronous operation.
Remarks
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.
Applies to
Maklum balas
https://aka.ms/ContentUserFeedback.
Akan datang: Sepanjang 2024, kami akan menghentikan secara berperingkat Isu GitHub sebagai kaedah maklum balas untuk kandungan dan menggantikannya dengan sistem maklum balas baharu. Untuk mendapatkan maklumat lanjut lihat:Kirim dan lihat maklum balas untuk