共用方式為


HttpMultipartFormDataContent.ReadAsBufferAsync 方法

定義

HttpMultipartFormDataContent 序列化為非同步作業的緩衝區。

public:
 virtual IAsyncOperationWithProgress<IBuffer ^, unsigned long long> ^ ReadAsBufferAsync() = ReadAsBufferAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<IBuffer, uint64_t> ReadAsBufferAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<IBuffer,ulong> ReadAsBufferAsync();
function readAsBufferAsync()
Public Function ReadAsBufferAsync () As IAsyncOperationWithProgress(Of IBuffer, ULong)

傳回

IAsyncOperationWithProgress<IBuffer,UInt64>

Windows.Foundation.IAsyncOperationWithProgress<Windows.Storage.Streams.IBuffer,unsigned long long>

IAsyncOperationWithProgress<IBuffer,uint64_t>

物件,表示非同步作業。

實作

屬性

備註

這項作業不會封鎖。 傳回的 IAsyncOperationWithProgress (IBuffer 和不帶正負號的 64 位整數) 會在所有內容都寫入緩衝區之後完成。

HttpMultipartFormDataContent類別可用來串流可能長度為任意長度的內容。 如果所有 HttpMultipartFormDataContent 無法放入記憶體中,ReadAsBufferAsync 方法將會失敗,因為此方法會要求先在記憶體中緩衝整個內容。

適用於