SystemTextJsonOutputFormatter クラス

定義

TextOutputFormatter 使用 JsonSerializerする JSON コンテンツの 。

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

コンストラクター

SystemTextJsonOutputFormatter(JsonSerializerOptions)

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

プロパティ

SerializerOptions

JsonSerializerOptions 構成するために使用される を取得します JsonSerializer

SupportedEncodings

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

(継承元 TextOutputFormatter)
SupportedMediaTypes

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

(継承元 OutputFormatter)

メソッド

CanWriteResult(OutputFormatterCanWriteContext)

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

(継承元 OutputFormatter)
CanWriteType(Type)

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

(継承元 OutputFormatter)
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)

適用対象