HttpContent.SerializeToStreamAsync Method
Serialize the HTTP content to a stream as an asynchronous operation.
Namespace: System.Net.Http
Assembly: System.Net.Http (in System.Net.Http.dll)
'Declaration Protected MustOverride Function SerializeToStreamAsync ( _ stream As Stream, _ context As TransportContext _ ) As Task
Parameters
- stream
- Type: System.IO.Stream
The target stream.
- context
- Type: System.Net.TransportContext
Information about the transport (channel binding token, for example). This parameter may be Nothing.
Return Value
Type: System.Threading.Tasks.TaskReturns Task.
The task object representing the asynchronous operation.
This operation will not block. The returned Task(Of TResult) object will complete after all of the content has been serialized to the stream object passed in the stream parameter.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.