Skip to main content

Windows Dev Center

HttpMultipartFormDataContent.WriteToStreamAsync | writeToStreamAsync method

Write the HttpMultipartFormDataContent to an output stream as an asynchronous operation.

Syntax


httpMultipartFormDataContent.writeToStreamAsync(outputStream).done( /* Your success and error handlers */ );

public IAsyncOperationWithProgress<UInt64, UInt64> WriteToStreamAsync(
  IOutputStream outputStream
)

Public Function WriteToStreamAsync(
  outputStream As IOutputStream 
) As IAsyncOperationWithProgress(Of UInt64, UInt64)

public:
IAsyncOperationWithProgress<UInt64, UInt64>^ WriteToStreamAsync(
  IOutputStream^ outputStream
)

Parameters

outputStream

Type: IOutputStream

The output stream to write to.

Return value

Type: IAsyncOperationWithProgress<UInt64, UInt64>

The object that represents the asynchronous operation.

Remarks

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

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Web.Http
Windows::Web::Http [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Web.Http
Windows::Web::Http [C++]

Metadata

Windows.winmd

See also

HttpMultipartFormDataContent