JsonSerializer.DeserializeAsyncEnumerable 메서드

정의

오버로드

DeserializeAsyncEnumerable<TValue>(Stream, JsonSerializerOptions, CancellationToken)

UTF-8로 인코딩된 텍스트를 IAsyncEnumerable<T> 스트리밍 방식으로 루트 수준 JSON 배열을 역직렬화하는 데 사용할 수 있는 로 래핑합니다.

DeserializeAsyncEnumerable<TValue>(Stream, JsonTypeInfo<TValue>, CancellationToken)

UTF-8로 인코딩된 텍스트를 IAsyncEnumerable<T> 스트리밍 방식으로 루트 수준 JSON 배열을 역직렬화하는 데 사용할 수 있는 로 래핑합니다.

DeserializeAsyncEnumerable<TValue>(Stream, JsonSerializerOptions, CancellationToken)

Source:
JsonSerializer.Read.Stream.cs
Source:
JsonSerializer.Read.Stream.cs
Source:
JsonSerializer.Read.Stream.cs

UTF-8로 인코딩된 텍스트를 IAsyncEnumerable<T> 스트리밍 방식으로 루트 수준 JSON 배열을 역직렬화하는 데 사용할 수 있는 로 래핑합니다.

public static System.Collections.Generic.IAsyncEnumerable<TValue?> DeserializeAsyncEnumerable<TValue> (System.IO.Stream utf8Json, System.Text.Json.JsonSerializerOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
static member DeserializeAsyncEnumerable : System.IO.Stream * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
Public Function DeserializeAsyncEnumerable(Of TValue) (utf8Json As Stream, Optional options As JsonSerializerOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TValue)

형식 매개 변수

TValue

비동기적으로 역직렬화할 요소 형식입니다.

매개 변수

utf8Json
Stream

구문 분석할 JSON 데이터입니다.

options
JsonSerializerOptions

읽는 동안 동작을 컨트롤하는 옵션입니다.

cancellationToken
CancellationToken

CancellationToken 읽기 작업을 취소하는 데 사용할 수 있는 입니다.

반환

IAsyncEnumerable<T> 제공된 JSON 배열의 표현입니다.

예외

utf8Jsonnull입니다.

취소 토큰이 취소되었습니다. 이 예외는 반환된 작업에 저장됩니다.

적용 대상

DeserializeAsyncEnumerable<TValue>(Stream, JsonTypeInfo<TValue>, CancellationToken)

Source:
JsonSerializer.Read.Stream.cs
Source:
JsonSerializer.Read.Stream.cs
Source:
JsonSerializer.Read.Stream.cs

UTF-8로 인코딩된 텍스트를 IAsyncEnumerable<T> 스트리밍 방식으로 루트 수준 JSON 배열을 역직렬화하는 데 사용할 수 있는 로 래핑합니다.

public static System.Collections.Generic.IAsyncEnumerable<TValue?> DeserializeAsyncEnumerable<TValue> (System.IO.Stream utf8Json, System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue> jsonTypeInfo, System.Threading.CancellationToken cancellationToken = default);
static member DeserializeAsyncEnumerable : System.IO.Stream * System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Value> * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
Public Function DeserializeAsyncEnumerable(Of TValue) (utf8Json As Stream, jsonTypeInfo As JsonTypeInfo(Of TValue), Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TValue)

형식 매개 변수

TValue

비동기적으로 역직렬화할 요소 형식입니다.

매개 변수

utf8Json
Stream

구문 분석할 JSON 데이터입니다.

jsonTypeInfo
JsonTypeInfo<TValue>

변환할 요소 형식에 대한 메타데이터입니다.

cancellationToken
CancellationToken

CancellationToken 읽기 작업을 취소하는 데 사용할 수 있는 입니다.

반환

IAsyncEnumerable<T> 제공된 JSON 배열의 표현입니다.

예외

utf8Json 또는 jsonTypeInfonull인 경우

취소 토큰이 취소되었습니다. 이 예외는 반환된 작업에 저장됩니다.

적용 대상