MultipartFormDataRemoteStreamProvider.GetRemoteStream Method (HttpContent, HttpContentHeaders)


Provides a RemoteStreamInfo for GetStream. Override this method to provide a remote stream to which the data should be written.

Namespace:   System.Net.Http
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

public abstract RemoteStreamInfo GetRemoteStream(
	HttpContent parent,
	HttpContentHeaders headers


Type: System.Net.Http.HttpContent

The parent HttpContent MIME multipart instance.

Type: System.Net.Http.Headers.HttpContentHeaders

The header fields describing the body part's content.

Return Value

Type: System.Net.Http.RemoteStreamInfo

A result specifying a remote stream where the file will be written to and a location where the file can be accessed. It cannot be null and the stream must be writable.

Return to top