Freigeben über


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.Type

    The type of the object to write.

Return Value

Type: Newtonsoft.Json.JsonWriter

The writer to use during serialization.

See Also

BsonMediaTypeFormatter Class
System.Net.Http.Formatting Namespace

Return to top