Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ObjectContent.SerializeToStreamAsync Method

Asynchronously serializes the object's content to the given stream.

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

protected override Task SerializeToStreamAsync(
	Stream stream,
	TransportContext context
)

Parameters

stream
Type: System.IO.Stream
The stream to write to.
context
Type: System.Net.TransportContext
The associated TransportContext.

Return Value

Type: System.Threading.Tasks.Task
The task object representing the asynchronous operation.
Show:
© 2015 Microsoft