The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
BaseJsonMediaTypeFormatter.WriteToStreamAsync Method
Namespace:
System.Net.Http.Formatting
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
| Name | Description | |
|---|---|---|
![]() | WriteToStreamAsync(Type, Object, Stream, HttpContent, TransportContext) | Asynchronously writes an object of the specified type.(Inherited from MediaTypeFormatter.) |
![]() | WriteToStreamAsync(Type, Object, Stream, HttpContent, TransportContext, CancellationToken) | Called during serialization to write an object of the specified type to the specified stream.(Overrides MediaTypeFormatter.WriteToStreamAsync(Type, Object, Stream, HttpContent, TransportContext, CancellationToken).) |
BaseJsonMediaTypeFormatter.WriteToStreamAsync Method (Type, Object, Stream, HttpContent, TransportContext, CancellationToken)
Called during serialization to write an object of the specified type to the specified stream.
Public Overrides Function WriteToStreamAsync ( type As Type, value As Object, writeStream As Stream, content As HttpContent, transportContext As TransportContext, cancellationToken As CancellationToken ) As Task
Parameters
- type
-
Type:
System.Type
The type of the object to write.
- value
-
Type:
System.Object
The object to write.
- writeStream
-
Type:
System.IO.Stream
The stream to write to.
- content
-
Type:
System.Net.Http.HttpContent
The HttpContent for the content being written.
- transportContext
-
Type:
System.Net.TransportContext
The transport context.
- cancellationToken
-
Type:
System.Threading.CancellationToken
The token to monitor for cancellation.
Show:
