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)
Syntax
public abstract RemoteStreamInfo GetRemoteStream(
HttpContent parent,
HttpContentHeaders headers
)
public:
virtual RemoteStreamInfo^ GetRemoteStream(
HttpContent^ parent,
HttpContentHeaders^ headers
) abstract
abstract GetRemoteStream :
parent:HttpContent *
headers:HttpContentHeaders -> RemoteStreamInfo
Public MustOverride Function GetRemoteStream (
parent As HttpContent,
headers As HttpContentHeaders
) As RemoteStreamInfo
Parameters
parent
Type: System.Net.Http.HttpContentThe parent HttpContent MIME multipart instance.
headers
Type: System.Net.Http.Headers.HttpContentHeadersThe 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.
See Also
MultipartFormDataRemoteStreamProvider Class
System.Net.Http Namespace
Return to top