Share via


HttpMultipartFormDataContent.ReadAsStringAsync Method

Definition

Serialize the HttpMultipartFormDataContent to a String as an asynchronous operation.

public:
 virtual IAsyncOperationWithProgress<Platform::String ^, unsigned long long> ^ ReadAsStringAsync() = ReadAsStringAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<winrt::hstring, uint64_t> ReadAsStringAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<string,ulong> ReadAsStringAsync();
function readAsStringAsync()
Public Function ReadAsStringAsync () As IAsyncOperationWithProgress(Of String, ULong)

Returns

IAsyncOperationWithProgress<String,UInt64>

Windows.Foundation.IAsyncOperationWithProgress<Platform::String,unsigned long long>

IAsyncOperationWithProgress<winrt::hstring,uint64_t>

The object representing the asynchronous operation.

Implements

Attributes

Remarks

This operation will not block. The returned IAsyncOperationWithProgress(String, UInt64) object will complete after all of the content has been written to the String.

The HttpMultipartFormDataContent class can be used to stream content that might be of arbitrary length. The ReadAsStringAsync method will fail if all of the HttpMultipartFormDataContent can't fit in memory since this method requires the entire content to be buffered in memory first.

Applies to