MvcNewtonsoftJsonOptions 클래스

정의

Newtonsoft.JSON을 사용하여 JSON 포맷터에 대한 프로그래밍 방식 구성을 제공합니다.

public ref class MvcNewtonsoftJsonOptions : System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Mvc::Infrastructure::ICompatibilitySwitch ^>
public class MvcNewtonsoftJsonOptions : System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Infrastructure.ICompatibilitySwitch>
type MvcNewtonsoftJsonOptions = class
    interface seq<ICompatibilitySwitch>
    interface IEnumerable
Public Class MvcNewtonsoftJsonOptions
Implements IEnumerable(Of ICompatibilitySwitch)
상속
MvcNewtonsoftJsonOptions
구현

생성자

MvcNewtonsoftJsonOptions()

Newtonsoft.JSON을 사용하여 JSON 포맷터에 대한 프로그래밍 방식 구성을 제공합니다.

속성

AllowInputFormatterExceptionMessages

에 의한 JSON 역직렬화의 오류 메시지가 에 추가될지 여부를 결정하는 플래그를 NewtonsoftJsonInputFormatterModelStateDictionary가져오거나 설정합니다. 이면 false제네릭 오류 메시지가 대신 사용됩니다.

InputFormatterMemoryBufferThreshold

가 설정되지 않은 경우 SuppressInputFormatterBuffering 메모리에서 버퍼링할 최대 크기를 가져옵니다.

NewtonsoftJsonInputFormatter 는 디스크에 버퍼링하기 전에 기본적으로 입력 스트림을 버퍼링하여 메모리에서 일정량까지 버퍼링합니다. 이 옵션은 디스크로 전환하기 전에 MVC가 메모리에서 버퍼링할 크기(바이트)를 구성합니다.

OutputFormatterMemoryBufferThreshold

가 설정되지 않은 경우 SuppressOutputFormatterBuffering 메모리에서 버퍼링할 최대 크기를 가져옵니다.

NewtonsoftJsonOutputFormatter 는 디스크에 버퍼링하기 전에 기본적으로 출력 스트림을 버퍼링하여 메모리에서 일정량까지 버퍼링합니다. 이 옵션은 디스크로 전환하기 전에 MVC가 메모리에서 버퍼링할 크기(바이트)를 구성합니다.

ReadJsonWithRequestCulture

현재 HTTP 요청의 CurrentCulture 값이 에 의한 JSON 역직렬화 NewtonsoftJsonInputFormatter에 사용되는지 여부를 확인하는 플래그를 가져오거나 설정합니다.

SerializerSettings

이 애플리케이션에서 Newtonsoft.Json.JsonSerializerSettings 사용되는 을 가져옵니다.

명시적 인터페이스 구현

IEnumerable.GetEnumerator()

Newtonsoft.JSON을 사용하여 JSON 포맷터에 대한 프로그래밍 방식 구성을 제공합니다.

IEnumerable<ICompatibilitySwitch>.GetEnumerator()

Newtonsoft.JSON을 사용하여 JSON 포맷터에 대한 프로그래밍 방식 구성을 제공합니다.

확장 메서드

UseCamelCasing(MvcNewtonsoftJsonOptions, Boolean)

속성 이름 및 동적 형식 및 사전 키에 선택적으로 카멜 대/소문자를 사용하도록 JSON serialization의 대/소문자 동작을 구성합니다.

UseMemberCasing(MvcNewtonsoftJsonOptions)

속성 이름, 동적 형식의 속성 및 사전 키에 멤버의 대/소문자를 사용하도록 JSON serialization의 대/소문자 동작을 구성합니다.

적용 대상