JsonSerializerOptions.AllowOutOfOrderMetadataProperties 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
역직렬화된 JSON 개체의 일반 속성 다음에 JSON 메타데이터 속성을 지정할 수 있습니다.
public:
property bool AllowOutOfOrderMetadataProperties { bool get(); void set(bool value); };
public bool AllowOutOfOrderMetadataProperties { get; set; }
member this.AllowOutOfOrderMetadataProperties : bool with get, set
Public Property AllowOutOfOrderMetadataProperties As Boolean
속성 값
예외
serialization 또는 deserialization이 발생한 후 이 속성이 설정된 경우 throw됩니다.
설명
true
설정하면 JSON 메타데이터 속성 요구 사항이 제거됩니다.
$id 및 $type 같은 역직렬화된 JSON 개체의 시작 부분에 지정해야 합니다.
이 설정을 사용하도록 설정하면 오버 버퍼링이 발생할 수 있습니다.
스트리밍 역직렬화 컨텍스트에서 큰 JSON 페이로드를 역직렬화하는 경우