JsonSerializer.DeserializeAsyncEnumerable Metoda

Definice

Přetížení

Name Description
DeserializeAsyncEnumerable<TValue>(PipeReader, JsonTypeInfo<TValue>, Boolean, CancellationToken)

Zalomí kódovaný text UTF-8 do IAsyncEnumerable<T> textu, který lze použít k deserializaci sekvencí hodnot JSON streamovaným způsobem.

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

Zalomí kódovaný text UTF-8 do IAsyncEnumerable<T> textu, který lze použít k deserializaci sekvencí hodnot JSON streamovaným způsobem.

DeserializeAsyncEnumerable<TValue>(Stream, Boolean, JsonSerializerOptions, CancellationToken)

Zalomí kódovaný text UTF-8 do IAsyncEnumerable<T> textu, který lze použít k deserializaci sekvencí hodnot JSON streamovaným způsobem.

DeserializeAsyncEnumerable<TValue>(PipeReader, Boolean, JsonSerializerOptions, CancellationToken)

Zalomí kódovaný text UTF-8 do IAsyncEnumerable<T> textu, který lze použít k deserializaci sekvencí hodnot JSON streamovaným způsobem.

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

Zalomí kódovaný text UTF-8 do IAsyncEnumerable<T> toho, který lze použít k deserializaci polí JSON na kořenové úrovni způsobem streamování.

DeserializeAsyncEnumerable<TValue>(Stream, JsonSerializerOptions, CancellationToken)

Zalomí kódovaný text UTF-8 do IAsyncEnumerable<T> toho, který lze použít k deserializaci polí JSON na kořenové úrovni způsobem streamování.

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

Zalomí kódovaný text UTF-8 do IAsyncEnumerable<T> toho, který lze použít k deserializaci polí JSON na kořenové úrovni způsobem streamování.

DeserializeAsyncEnumerable<TValue>(PipeReader, JsonSerializerOptions, CancellationToken)

Zalomí kódovaný text UTF-8 do IAsyncEnumerable<T> toho, který lze použít k deserializaci polí JSON na kořenové úrovni způsobem streamování.

DeserializeAsyncEnumerable<TValue>(PipeReader, JsonTypeInfo<TValue>, Boolean, CancellationToken)

Zdroj:
JsonSerializer.Read.Pipe.cs
Zdroj:
JsonSerializer.Read.Pipe.cs
Zdroj:
JsonSerializer.Read.Pipe.cs

Zalomí kódovaný text UTF-8 do IAsyncEnumerable<T> textu, který lze použít k deserializaci sekvencí hodnot JSON streamovaným způsobem.

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

Parametry typu

TValue

Typ elementu, který se má deserializovat asynchronně.

Parametry

utf8Json
PipeReader

Data JSON, která se mají analyzovat

jsonTypeInfo
JsonTypeInfo<TValue>

Metadata o typu elementu, který chcete převést.

topLevelValues
Boolean

Určuje, jestli se má deserializovat z posloupnosti hodnot JSON nejvyšší úrovně.

cancellationToken
CancellationToken

Tuto CancellationToken operaci lze použít ke zrušení operace čtení.

Návraty

Reprezentace IAsyncEnumerable<T> poskytnuté sekvence JSON.

Výjimky

utf8Json nebo jsonTypeInfo je null.

Poznámky

Pokud topLevelValues je nastavena na true, zpracovává PipeReader jako posloupnost prázdných znaků oddělených hodnoty JSON nejvyšší úrovně a pokusí se deserializovat každou hodnotu do TValue.

Pokud topLevelValues je nastavena na false, zpracovává PipeReader jako pole JSON a pokusí se serializovat každý prvek do TValue.

Platí pro

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

Zdroj:
JsonSerializer.Read.Stream.cs
Zdroj:
JsonSerializer.Read.Stream.cs
Zdroj:
JsonSerializer.Read.Stream.cs
Zdroj:
JsonSerializer.Read.Stream.cs

Zalomí kódovaný text UTF-8 do IAsyncEnumerable<T> textu, který lze použít k deserializaci sekvencí hodnot JSON streamovaným způsobem.

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

Parametry typu

TValue

Typ elementu, který se má deserializovat asynchronně.

Parametry

utf8Json
Stream

Data JSON, která se mají analyzovat

jsonTypeInfo
JsonTypeInfo<TValue>

Metadata o typu elementu, který chcete převést.

topLevelValues
Boolean

Určuje, jestli se má deserializovat z posloupnosti hodnot JSON nejvyšší úrovně.

cancellationToken
CancellationToken

Tuto CancellationToken operaci lze použít ke zrušení operace čtení.

Návraty

Reprezentace IAsyncEnumerable<T> poskytnuté sekvence JSON.

Výjimky

utf8Json nebo jsonTypeInfo je null.

Poznámky

Pokud topLevelValues je nastavena na true, považuje stream za posloupnost prázdných znaků oddělených hodnoty JSON nejvyšší úrovně a pokusí se deserializovat každou hodnotu do TValue.

Pokud topLevelValues je nastavena na false, považuje stream za pole JSON a pokusí se serializovat každý prvek do TValue.

Platí pro

DeserializeAsyncEnumerable<TValue>(Stream, Boolean, JsonSerializerOptions, CancellationToken)

Zdroj:
JsonSerializer.Read.Stream.cs
Zdroj:
JsonSerializer.Read.Stream.cs
Zdroj:
JsonSerializer.Read.Stream.cs
Zdroj:
JsonSerializer.Read.Stream.cs

Zalomí kódovaný text UTF-8 do IAsyncEnumerable<T> textu, který lze použít k deserializaci sekvencí hodnot JSON streamovaným způsobem.

[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
public static System.Collections.Generic.IAsyncEnumerable<TValue?> DeserializeAsyncEnumerable<TValue>(System.IO.Stream utf8Json, bool topLevelValues, System.Text.Json.JsonSerializerOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
public static System.Collections.Generic.IAsyncEnumerable<TValue?> DeserializeAsyncEnumerable<TValue>(System.IO.Stream utf8Json, bool topLevelValues, System.Text.Json.JsonSerializerOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")>]
static member DeserializeAsyncEnumerable : System.IO.Stream * bool * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
static member DeserializeAsyncEnumerable : System.IO.Stream * bool * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
Public Function DeserializeAsyncEnumerable(Of TValue) (utf8Json As Stream, topLevelValues As Boolean, Optional options As JsonSerializerOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TValue)

Parametry typu

TValue

Typ elementu, který se má deserializovat asynchronně.

Parametry

utf8Json
Stream

Data JSON, která se mají analyzovat

topLevelValues
Boolean

true deserializovat z posloupnosti hodnot JSON nejvyšší úrovně nebo false deserializovat z jednoho pole nejvyšší úrovně.

options
JsonSerializerOptions

Možnosti řízení chování při čtení

cancellationToken
CancellationToken

Tuto CancellationToken operaci lze použít ke zrušení operace čtení.

Návraty

Reprezentace IAsyncEnumerable<T> poskytnuté sekvence JSON.

Atributy

Výjimky

utf8Json je null.

Poznámky

Pokud topLevelValues je nastavena na true, považuje stream za posloupnost prázdných znaků oddělených hodnoty JSON nejvyšší úrovně a pokusí se deserializovat každou hodnotu do TValue.

Pokud topLevelValues je nastavena na false, považuje stream za pole JSON a pokusí se serializovat každý prvek do TValue.

Platí pro

DeserializeAsyncEnumerable<TValue>(PipeReader, Boolean, JsonSerializerOptions, CancellationToken)

Zdroj:
JsonSerializer.Read.Pipe.cs
Zdroj:
JsonSerializer.Read.Pipe.cs
Zdroj:
JsonSerializer.Read.Pipe.cs

Zalomí kódovaný text UTF-8 do IAsyncEnumerable<T> textu, který lze použít k deserializaci sekvencí hodnot JSON streamovaným způsobem.

[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
public static System.Collections.Generic.IAsyncEnumerable<TValue?> DeserializeAsyncEnumerable<TValue>(System.IO.Pipelines.PipeReader utf8Json, bool topLevelValues, System.Text.Json.JsonSerializerOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
public static System.Collections.Generic.IAsyncEnumerable<TValue?> DeserializeAsyncEnumerable<TValue>(System.IO.Pipelines.PipeReader utf8Json, bool topLevelValues, System.Text.Json.JsonSerializerOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")>]
static member DeserializeAsyncEnumerable : System.IO.Pipelines.PipeReader * bool * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
static member DeserializeAsyncEnumerable : System.IO.Pipelines.PipeReader * bool * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
Public Function DeserializeAsyncEnumerable(Of TValue) (utf8Json As PipeReader, topLevelValues As Boolean, Optional options As JsonSerializerOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TValue)

Parametry typu

TValue

Typ elementu, který se má deserializovat asynchronně.

Parametry

utf8Json
PipeReader

Data JSON, která se mají analyzovat

topLevelValues
Boolean

true deserializovat z posloupnosti hodnot JSON nejvyšší úrovně nebo false deserializovat z jednoho pole nejvyšší úrovně.

options
JsonSerializerOptions

Možnosti řízení chování při čtení

cancellationToken
CancellationToken

Tuto CancellationToken operaci lze použít ke zrušení operace čtení.

Návraty

Reprezentace IAsyncEnumerable<T> poskytnuté sekvence JSON.

Atributy

Výjimky

utf8Json je null.

Poznámky

Pokud topLevelValues je nastavena na true, zpracovává PipeReader jako posloupnost prázdných znaků oddělených hodnoty JSON nejvyšší úrovně a pokusí se deserializovat každou hodnotu do TValue.

Pokud topLevelValues je nastavena na false, zpracovává PipeReader jako pole JSON a pokusí se serializovat každý prvek do TValue.

Platí pro

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

Zdroj:
JsonSerializer.Read.Stream.cs
Zdroj:
JsonSerializer.Read.Stream.cs
Zdroj:
JsonSerializer.Read.Stream.cs
Zdroj:
JsonSerializer.Read.Stream.cs
Zdroj:
JsonSerializer.Read.Stream.cs
Zdroj:
JsonSerializer.Read.Stream.cs
Zdroj:
JsonSerializer.Read.Stream.cs

Zalomí kódovaný text UTF-8 do IAsyncEnumerable<T> toho, který lze použít k deserializaci polí JSON na kořenové úrovni způsobem streamování.

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)

Parametry typu

TValue

Typ elementu, který se má deserializovat asynchronně.

Parametry

utf8Json
Stream

Data JSON, která se mají analyzovat

jsonTypeInfo
JsonTypeInfo<TValue>

Metadata o typu elementu, který chcete převést.

cancellationToken
CancellationToken

Tuto CancellationToken operaci lze použít ke zrušení operace čtení.

Návraty

Reprezentace IAsyncEnumerable<T> poskytnutého pole JSON.

Výjimky

utf8Json nebo jsonTypeInfo je null.

Token zrušení byl zrušen. Tato výjimka je uložena do vrácené úlohy.

Platí pro

DeserializeAsyncEnumerable<TValue>(Stream, JsonSerializerOptions, CancellationToken)

Zdroj:
JsonSerializer.Read.Stream.cs
Zdroj:
JsonSerializer.Read.Stream.cs
Zdroj:
JsonSerializer.Read.Stream.cs
Zdroj:
JsonSerializer.Read.Stream.cs
Zdroj:
JsonSerializer.Read.Stream.cs
Zdroj:
JsonSerializer.Read.Stream.cs
Zdroj:
JsonSerializer.Read.Stream.cs

Zalomí kódovaný text UTF-8 do IAsyncEnumerable<T> toho, který lze použít k deserializaci polí JSON na kořenové úrovni způsobem streamování.

[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
public static System.Collections.Generic.IAsyncEnumerable<TValue?> DeserializeAsyncEnumerable<TValue>(System.IO.Stream utf8Json, System.Text.Json.JsonSerializerOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
public static System.Collections.Generic.IAsyncEnumerable<TValue?> DeserializeAsyncEnumerable<TValue>(System.IO.Stream utf8Json, System.Text.Json.JsonSerializerOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
public static System.Collections.Generic.IAsyncEnumerable<TValue?> DeserializeAsyncEnumerable<TValue>(System.IO.Stream utf8Json, System.Text.Json.JsonSerializerOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")>]
static member DeserializeAsyncEnumerable : System.IO.Stream * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")>]
static member DeserializeAsyncEnumerable : System.IO.Stream * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
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)

Parametry typu

TValue

Typ elementu, který se má deserializovat asynchronně.

Parametry

utf8Json
Stream

Data JSON, která se mají analyzovat

options
JsonSerializerOptions

Možnosti řízení chování při čtení

cancellationToken
CancellationToken

Tuto CancellationToken operaci lze použít ke zrušení operace čtení.

Návraty

Reprezentace IAsyncEnumerable<T> poskytnutého pole JSON.

Atributy

Výjimky

utf8Json je null.

Token zrušení byl zrušen. Tato výjimka je uložena do vrácené úlohy.

Platí pro

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

Zdroj:
JsonSerializer.Read.Pipe.cs
Zdroj:
JsonSerializer.Read.Pipe.cs
Zdroj:
JsonSerializer.Read.Pipe.cs

Zalomí kódovaný text UTF-8 do IAsyncEnumerable<T> toho, který lze použít k deserializaci polí JSON na kořenové úrovni způsobem streamování.

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

Parametry typu

TValue

Typ elementu, který se má deserializovat asynchronně.

Parametry

utf8Json
PipeReader

Data JSON, která se mají analyzovat

jsonTypeInfo
JsonTypeInfo<TValue>

Metadata o typu elementu, který chcete převést.

cancellationToken
CancellationToken

Tuto CancellationToken operaci lze použít ke zrušení operace čtení.

Návraty

Reprezentace IAsyncEnumerable<T> poskytnutého pole JSON.

Výjimky

utf8Json nebo jsonTypeInfo je null.

Platí pro

DeserializeAsyncEnumerable<TValue>(PipeReader, JsonSerializerOptions, CancellationToken)

Zdroj:
JsonSerializer.Read.Pipe.cs
Zdroj:
JsonSerializer.Read.Pipe.cs
Zdroj:
JsonSerializer.Read.Pipe.cs

Zalomí kódovaný text UTF-8 do IAsyncEnumerable<T> toho, který lze použít k deserializaci polí JSON na kořenové úrovni způsobem streamování.

[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
public static System.Collections.Generic.IAsyncEnumerable<TValue?> DeserializeAsyncEnumerable<TValue>(System.IO.Pipelines.PipeReader utf8Json, System.Text.Json.JsonSerializerOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
public static System.Collections.Generic.IAsyncEnumerable<TValue?> DeserializeAsyncEnumerable<TValue>(System.IO.Pipelines.PipeReader utf8Json, System.Text.Json.JsonSerializerOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")>]
static member DeserializeAsyncEnumerable : System.IO.Pipelines.PipeReader * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
static member DeserializeAsyncEnumerable : System.IO.Pipelines.PipeReader * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
Public Function DeserializeAsyncEnumerable(Of TValue) (utf8Json As PipeReader, Optional options As JsonSerializerOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TValue)

Parametry typu

TValue

Typ elementu, který se má deserializovat asynchronně.

Parametry

utf8Json
PipeReader

Data JSON, která se mají analyzovat

options
JsonSerializerOptions

Možnosti řízení chování při čtení

cancellationToken
CancellationToken

Tuto CancellationToken operaci lze použít ke zrušení operace čtení.

Návraty

Reprezentace IAsyncEnumerable<T> poskytnutého pole JSON.

Atributy

Výjimky

utf8Json je null.

Platí pro