PushStreamContent.SerializeToStreamAsync Method (Stream, TransportContext)

 

Asynchronously serializes the push content into stream.

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

Syntax

[DebuggerStepThroughAttribute]
protected override Task SerializeToStreamAsync(
    Stream stream,
    TransportContext context
)
protected:
[DebuggerStepThroughAttribute]
virtual Task^ SerializeToStreamAsync(
    Stream^ stream,
    TransportContext^ context
) override
[<DebuggerStepThroughAttribute>]
override SerializeToStreamAsync : 
        stream:Stream *
        context:TransportContext -> Task
<DebuggerStepThroughAttribute>
Protected Overrides Function SerializeToStreamAsync (
    stream As Stream,
    context As TransportContext
) As Task

Parameters

  • stream
    Type: System.IO.Stream

    The stream where the push content will be serialized.

Return Value

Type: System.Threading.Tasks.Task

The serialized push content.

See Also

PushStreamContent Class
System.Net.Http Namespace

Return to top