SystemTextJsonInputFormatter 클래스

정의

TextInputFormatter 를 사용하는 JSON 콘텐츠에 대한 입니다JsonSerializer.

public ref class SystemTextJsonInputFormatter : Microsoft::AspNetCore::Mvc::Formatters::TextInputFormatter, Microsoft::AspNetCore::Mvc::Formatters::IInputFormatterExceptionPolicy
public class SystemTextJsonInputFormatter : Microsoft.AspNetCore.Mvc.Formatters.TextInputFormatter, Microsoft.AspNetCore.Mvc.Formatters.IInputFormatterExceptionPolicy
type SystemTextJsonInputFormatter = class
    inherit TextInputFormatter
    interface IInputFormatterExceptionPolicy
Public Class SystemTextJsonInputFormatter
Inherits TextInputFormatter
Implements IInputFormatterExceptionPolicy
상속
SystemTextJsonInputFormatter
구현

생성자

SystemTextJsonInputFormatter(JsonOptions, ILogger<SystemTextJsonInputFormatter>)

SystemTextJsonInputFormatter의 새 인스턴스를 초기화합니다.

속성

SerializerOptions

JsonSerializerOptions 구성하는 데 사용되는 를 가져옵니다 JsonSerializer.

SupportedEncodings

TextInputFormatter에서 지원하는 문자 인코딩의 변경 가능한 컬렉션을 가져옵니다. 인코딩은 데이터를 읽을 때 사용됩니다.

(다음에서 상속됨 TextInputFormatter)
SupportedMediaTypes

InputFormatter에서 지원하는 미디어 형식 요소의 변경 가능한 컬렉션을 가져옵니다.

(다음에서 상속됨 InputFormatter)

메서드

CanRead(InputFormatterContext)

IInputFormatter 개체contextModelType를 역직렬화할 수 있는지 여부를 결정합니다.

(다음에서 상속됨 InputFormatter)
CanReadType(Type)

지정된 type의 개체를 역직렬화할 수 있는지 여부를 InputFormatter 결정합니다.

(다음에서 상속됨 InputFormatter)
GetDefaultValueForType(Type)

지정된 형식의 기본값을 가져옵니다. 본문에 콘텐츠가 없는 경우 기본값을 반환하는 데 사용됩니다.

(다음에서 상속됨 InputFormatter)
GetSupportedContentTypes(String, Type)

contentType에 대해 objectType 에서 지원하는 IInputFormatter 콘텐츠 형식의 필터링된 목록을 가져옵니다.

(다음에서 상속됨 InputFormatter)
ReadAsync(InputFormatterContext)

요청 본문에서 개체를 읽습니다.

(다음에서 상속됨 InputFormatter)
ReadRequestBodyAsync(InputFormatterContext)

요청 본문에서 개체를 읽습니다.

(다음에서 상속됨 TextInputFormatter)
ReadRequestBodyAsync(InputFormatterContext, Encoding)

요청 본문에서 개체를 읽습니다.

SelectCharacterEncoding(InputFormatterContext)

의 문자 집합을 기반으로 contextEncoding 반환합니다.

(다음에서 상속됨 TextInputFormatter)

명시적 인터페이스 구현

IInputFormatterExceptionPolicy.ExceptionPolicy

본문 모델 바인더가 모든 예외를 처리해야 하는지 여부를 나타내는 플래그를 가져옵니다. 예외가 처리되면 본문 모델 바인더는 예외를 모델 상태 오류로 변환하고, 그렇지 않으면 예외를 전파할 수 있습니다.

적용 대상