BaseJsonMediaTypeFormatter.WriteToStream Method (Type, Object, Stream, Encoding)
Called during serialization to write an object of the specified type to the specified stream.
Namespace: System.Net.Http.Formatting
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
public virtual void WriteToStream(
Type type,
object value,
Stream writeStream,
Encoding effectiveEncoding
)
public:
virtual void WriteToStream(
Type^ type,
Object^ value,
Stream^ writeStream,
Encoding^ effectiveEncoding
)
abstract WriteToStream :
type:Type *
value:Object *
writeStream:Stream *
effectiveEncoding:Encoding -> unit
override WriteToStream :
type:Type *
value:Object *
writeStream:Stream *
effectiveEncoding:Encoding -> unit
Public Overridable Sub WriteToStream (
type As Type,
value As Object,
writeStream As Stream,
effectiveEncoding As Encoding
)
Parameters
type
Type: System.TypeThe type of the object to write.
value
Type: System.ObjectThe object to write.
writeStream
Type: System.IO.StreamThe stream to write to.
effectiveEncoding
Type: System.Text.EncodingThe encoding to use when writing.
See Also
BaseJsonMediaTypeFormatter Class
System.Net.Http.Formatting Namespace
Return to top