HttpContentJsonExtensions.ReadFromJsonAsAsyncEnumerable Methode

Definitie

Overloads

Name Description
ReadFromJsonAsAsyncEnumerable<TValue>(HttpContent, CancellationToken)

Leest de HTTP-inhoud en retourneert de waarde die het resultaat is van het deserialiseren van de inhoud als JSON in een asynchrone enumerable bewerking.

ReadFromJsonAsAsyncEnumerable<TValue>(HttpContent, JsonSerializerOptions, CancellationToken)

Leest de HTTP-inhoud en retourneert de waarde die het resultaat is van het deserialiseren van de inhoud als JSON in een asynchrone enumerable bewerking.

ReadFromJsonAsAsyncEnumerable<TValue>(HttpContent, JsonTypeInfo<TValue>, CancellationToken)

Leest de HTTP-inhoud en retourneert de waarde die het resultaat is van het deserialiseren van de inhoud als JSON in een asynchrone enumerable bewerking.

ReadFromJsonAsAsyncEnumerable<TValue>(HttpContent, CancellationToken)

Bron:
HttpContentJsonExtensions.AsyncEnumerable.cs
Bron:
HttpContentJsonExtensions.AsyncEnumerable.cs
Bron:
HttpContentJsonExtensions.AsyncEnumerable.cs
Bron:
HttpContentJsonExtensions.AsyncEnumerable.cs
Bron:
HttpContentJsonExtensions.AsyncEnumerable.cs
Bron:
HttpContentJsonExtensions.AsyncEnumerable.cs

Leest de HTTP-inhoud en retourneert de waarde die het resultaat is van het deserialiseren van de inhoud als JSON in een asynchrone enumerable bewerking.

[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext.")]
[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?> ReadFromJsonAsAsyncEnumerable<TValue>(this System.Net.Http.HttpContent content, System.Threading.CancellationToken cancellationToken = default);
public static System.Collections.Generic.IAsyncEnumerable<TValue?> ReadFromJsonAsAsyncEnumerable<TValue>(this System.Net.Http.HttpContent content, System.Threading.CancellationToken cancellationToken = default);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext.")>]
[<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 ReadFromJsonAsAsyncEnumerable : System.Net.Http.HttpContent * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
static member ReadFromJsonAsAsyncEnumerable : System.Net.Http.HttpContent * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
<Extension()>
Public Function ReadFromJsonAsAsyncEnumerable(Of TValue) (content As HttpContent, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TValue)

Type parameters

TValue

Het doeltype dat moet worden gedeserialiseerd.

Parameters

content
HttpContent
cancellationToken
CancellationToken

Retouren

Een IAsyncEnumerable<T> die deserialized antwoordtekst vertegenwoordigt.

Kenmerken

Uitzonderingen

De content is null.

Het annuleringstoken is geannuleerd. Deze uitzondering wordt opgeslagen in de geretourneerde taak.

Van toepassing op

ReadFromJsonAsAsyncEnumerable<TValue>(HttpContent, JsonSerializerOptions, CancellationToken)

Bron:
HttpContentJsonExtensions.AsyncEnumerable.cs
Bron:
HttpContentJsonExtensions.AsyncEnumerable.cs
Bron:
HttpContentJsonExtensions.AsyncEnumerable.cs
Bron:
HttpContentJsonExtensions.AsyncEnumerable.cs
Bron:
HttpContentJsonExtensions.AsyncEnumerable.cs
Bron:
HttpContentJsonExtensions.AsyncEnumerable.cs

Leest de HTTP-inhoud en retourneert de waarde die het resultaat is van het deserialiseren van de inhoud als JSON in een asynchrone enumerable bewerking.

[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext.")]
[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?> ReadFromJsonAsAsyncEnumerable<TValue>(this System.Net.Http.HttpContent content, System.Text.Json.JsonSerializerOptions? options, System.Threading.CancellationToken cancellationToken = default);
public static System.Collections.Generic.IAsyncEnumerable<TValue?> ReadFromJsonAsAsyncEnumerable<TValue>(this System.Net.Http.HttpContent content, System.Text.Json.JsonSerializerOptions? options, System.Threading.CancellationToken cancellationToken = default);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext.")>]
[<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 ReadFromJsonAsAsyncEnumerable : System.Net.Http.HttpContent * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
static member ReadFromJsonAsAsyncEnumerable : System.Net.Http.HttpContent * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
<Extension()>
Public Function ReadFromJsonAsAsyncEnumerable(Of TValue) (content As HttpContent, options As JsonSerializerOptions, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TValue)

Type parameters

TValue

Het doeltype dat moet worden gedeserialiseerd.

Parameters

content
HttpContent

De inhoud waaruit moet worden gelezen.

options
JsonSerializerOptions

Opties voor het beheren van het gedrag tijdens deserialisatie. De standaardopties zijn de opties die zijn opgegeven door Web.

cancellationToken
CancellationToken

Retouren

Een IAsyncEnumerable<T> die deserialized antwoordtekst vertegenwoordigt.

Kenmerken

Uitzonderingen

De content is null.

Het annuleringstoken is geannuleerd. Deze uitzondering wordt opgeslagen in de geretourneerde taak.

Van toepassing op

ReadFromJsonAsAsyncEnumerable<TValue>(HttpContent, JsonTypeInfo<TValue>, CancellationToken)

Bron:
HttpContentJsonExtensions.AsyncEnumerable.cs
Bron:
HttpContentJsonExtensions.AsyncEnumerable.cs
Bron:
HttpContentJsonExtensions.AsyncEnumerable.cs
Bron:
HttpContentJsonExtensions.AsyncEnumerable.cs
Bron:
HttpContentJsonExtensions.AsyncEnumerable.cs
Bron:
HttpContentJsonExtensions.AsyncEnumerable.cs

Leest de HTTP-inhoud en retourneert de waarde die het resultaat is van het deserialiseren van de inhoud als JSON in een asynchrone enumerable bewerking.

public static System.Collections.Generic.IAsyncEnumerable<TValue?> ReadFromJsonAsAsyncEnumerable<TValue>(this System.Net.Http.HttpContent content, System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue> jsonTypeInfo, System.Threading.CancellationToken cancellationToken = default);
static member ReadFromJsonAsAsyncEnumerable : System.Net.Http.HttpContent * System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Value> * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Value>
<Extension()>
Public Function ReadFromJsonAsAsyncEnumerable(Of TValue) (content As HttpContent, jsonTypeInfo As JsonTypeInfo(Of TValue), Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TValue)

Type parameters

TValue

Het doeltype dat moet worden gedeserialiseerd.

Parameters

content
HttpContent

De inhoud waaruit moet worden gelezen.

jsonTypeInfo
JsonTypeInfo<TValue>

De JsonTypeInfo die wordt gebruikt om het deserialisatiegedrag te beheren.

cancellationToken
CancellationToken

Retouren

Een IAsyncEnumerable<T> die deserialized antwoordtekst vertegenwoordigt.

Uitzonderingen

De content is null.

Het annuleringstoken is geannuleerd. Deze uitzondering wordt opgeslagen in de geretourneerde taak.

Van toepassing op