BsonMediaTypeFormatter.CreateJsonWriter Method (Type, Stream, Encoding)
Called during serialization to get the JsonWriter.
Namespace: System.Net.Http.Formatting
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
public override JsonWriter CreateJsonWriter(
Type type,
Stream writeStream,
Encoding effectiveEncoding
)
public:
virtual JsonWriter^ CreateJsonWriter(
Type^ type,
Stream^ writeStream,
Encoding^ effectiveEncoding
) override
override CreateJsonWriter :
type:Type *
writeStream:Stream *
effectiveEncoding:Encoding -> JsonWriter
Public Overrides Function CreateJsonWriter (
type As Type,
writeStream As Stream,
effectiveEncoding As Encoding
) As JsonWriter
Parameters
type
Type: System.TypeThe type of the object to write.
writeStream
Type: System.IO.StreamThe stream to write to.
effectiveEncoding
Type: System.Text.EncodingThe encoding to use when writing.
Return Value
Type: Newtonsoft.Json.JsonWriter
The writer to use during serialization.
See Also
BsonMediaTypeFormatter Class
System.Net.Http.Formatting Namespace
Return to top