MultipartFormDataStreamProvider.OnGetStream Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Override this method in a derived class to examine the headers provided by the MIME multipart parser and decide whether it should return a file stream or a memory stream for the body part to be written to.

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

Syntax

'Declaration
Protected Overridable Function OnGetStream ( _
    headers As HttpContentHeaders _
) As Stream
protected virtual Stream OnGetStream(
    HttpContentHeaders headers
)
protected:
virtual Stream^ OnGetStream(
    HttpContentHeaders^ headers
)
abstract OnGetStream : 
        headers:HttpContentHeaders -> Stream 
override OnGetStream : 
        headers:HttpContentHeaders -> Stream 
protected function OnGetStream(
    headers : HttpContentHeaders
) : Stream

Parameters

Return Value

Type: System.IO.Stream
The Stream instance where the message body part is written to.

.NET Framework Security

See Also

Reference

MultipartFormDataStreamProvider Class

System.Net.Http Namespace