BaseJsonMediaTypeFormatter.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 abstract JsonWriter CreateJsonWriter(
    Type type,
    Stream writeStream,
    Encoding effectiveEncoding
)
public:
virtual JsonWriter^ CreateJsonWriter(
    Type^ type,
    Stream^ writeStream,
    Encoding^ effectiveEncoding
) abstract
abstract CreateJsonWriter : 
        type:Type *
        writeStream:Stream *
        effectiveEncoding:Encoding -> JsonWriter
Public MustOverride 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

BaseJsonMediaTypeFormatter Class
System.Net.Http.Formatting Namespace

Return to top