NewtonsoftJsonOutputFormatter クラス

定義

TextOutputFormatter JSON コンテンツの 。

public ref class NewtonsoftJsonOutputFormatter : Microsoft::AspNetCore::Mvc::Formatters::TextOutputFormatter
public class NewtonsoftJsonOutputFormatter : Microsoft.AspNetCore.Mvc.Formatters.TextOutputFormatter
type NewtonsoftJsonOutputFormatter = class
    inherit TextOutputFormatter
Public Class NewtonsoftJsonOutputFormatter
Inherits TextOutputFormatter
継承
NewtonsoftJsonOutputFormatter

コンストラクター

NewtonsoftJsonOutputFormatter(JsonSerializerSettings, ArrayPool<Char>, MvcOptions)
古い.

新しい NewtonsoftJsonOutputFormatter インスタンスを初期化します。

NewtonsoftJsonOutputFormatter(JsonSerializerSettings, ArrayPool<Char>, MvcOptions, MvcNewtonsoftJsonOptions)

新しい NewtonsoftJsonOutputFormatter インスタンスを初期化します。

プロパティ

SerializerSettings

Newtonsoft.Json.JsonSerializerSettings 構成するために使用される を取得します Newtonsoft.Json.JsonSerializer

SupportedEncodings

この TextOutputFormatterでサポートされている文字エンコーディングの変更可能なコレクションを取得します。 エンコードは、データの書き込み時に使用されます。

(継承元 TextOutputFormatter)
SupportedMediaTypes

この OutputFormatterでサポートされているメディア型要素の変更可能なコレクションを取得します。

(継承元 OutputFormatter)

メソッド

CanWriteResult(OutputFormatterCanWriteContext)

指定した型のオブジェクトをシリアル化できるかどうかを IOutputFormatter 判断します。

(継承元 OutputFormatter)
CanWriteType(Type)

指定した型をこのシリアライザーで書き込むことができるかどうかを示す値を返します。

(継承元 OutputFormatter)
CreateJsonSerializer()

シリアル化中に 呼び出され、 が作成されます Newtonsoft.Json.JsonSerializer。渡されるフォーマッタ コンテキストは、コンテキストに固有のシリアライザーを作成する機能を提供します。

CreateJsonSerializer(OutputFormatterWriteContext)

シリアル化中に 呼び出され、 が作成されます Newtonsoft.Json.JsonSerializer。渡されるフォーマッタ コンテキストは、コンテキストに固有のシリアライザーを作成する機能を提供します。

CreateJsonWriter(TextWriter)

シリアル化中に 呼び出され、 が作成されます Newtonsoft.Json.JsonWriter

GetSupportedContentTypes(String, Type)

および contentTypeの でサポートされているコンテンツ タイプのフィルター処理されたIOutputFormatterリストをobjectType取得します。

(継承元 OutputFormatter)
SelectCharacterEncoding(OutputFormatterWriteContext)

指定されたコンテンツ タイプに基づいて、HTTP エンティティ本体の読み取りまたは書き込みに対してサポートされているエンコードの中で最適 Encoding なエンコードを決定します。

(継承元 TextOutputFormatter)
WriteAsync(OutputFormatterWriteContext)

の Object プロパティで context表されるオブジェクトを書き込みます。

(継承元 TextOutputFormatter)
WriteResponseBodyAsync(OutputFormatterWriteContext)

応答本文を書き込みます。

(継承元 TextOutputFormatter)
WriteResponseBodyAsync(OutputFormatterWriteContext, Encoding)

応答本文を書き込みます。

WriteResponseHeaders(OutputFormatterWriteContext)

オブジェクトのヘッダーを HttpResponse 設定します。

(継承元 OutputFormatter)

適用対象