Partager via


MultipartMemoryStreamProvider.GetStream Method

Returns the Stream for the MultipartMemoryStreamProvider.

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

Syntax

'Declaration
Public Overrides Function GetStream ( _
    parent As HttpContent, _
    headers As HttpContentHeaders _
) As Stream
'Usage
Dim instance As MultipartMemoryStreamProvider 
Dim parent As HttpContent 
Dim headers As HttpContentHeaders 
Dim returnValue As Stream 

returnValue = instance.GetStream(parent, _
    headers)
public override Stream GetStream(
    HttpContent parent,
    HttpContentHeaders headers
)
public:
virtual Stream^ GetStream(
    HttpContent^ parent, 
    HttpContentHeaders^ headers
) override
abstract GetStream : 
        parent:HttpContent * 
        headers:HttpContentHeaders -> Stream  
override GetStream : 
        parent:HttpContent * 
        headers:HttpContentHeaders -> Stream
public override function GetStream(
    parent : HttpContent, 
    headers : HttpContentHeaders
) : Stream

Parameters

  • headers
    Type: HttpContentHeaders

    The HTTP content headers.

Return Value

Type: System.IO.Stream
The Stream for the MultipartMemoryStreamProvider.

See Also

Reference

MultipartMemoryStreamProvider Class

System.Net.Http Namespace