MultipartFormDataRemoteStreamProvider.GetRemoteStream Method
Provides a RemoteStreamInfo for GetStream(HttpContent, HttpContentHeaders). 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
'Declaration
Public MustOverride Function GetRemoteStream ( _
parent As HttpContent, _
headers As HttpContentHeaders _
) As RemoteStreamInfo
'Usage
Dim instance As MultipartFormDataRemoteStreamProvider
Dim parent As HttpContent
Dim headers As HttpContentHeaders
Dim returnValue As RemoteStreamInfo
returnValue = instance.GetRemoteStream(parent, _
headers)
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 abstract function GetRemoteStream(
parent : HttpContent,
headers : HttpContentHeaders
) : RemoteStreamInfo
Parameters
- parent
Type: HttpContent
The parent HttpContent MIME multipart instance.
- headers
Type: 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.