Partager via


MultipartRelatedStreamProvider.GetStream Method

Gets the related stream for the provider.

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 MultipartRelatedStreamProvider 
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

  • parent
    Type: HttpContent

    The parent content.

  • headers
    Type: HttpContentHeaders

    The http content headers.

Return Value

Type: System.IO.Stream
The content headers.

See Also

Reference

MultipartRelatedStreamProvider Class

System.Net.Http Namespace