HttpClientJsonExtensions.DeleteFromJsonAsync Methode

Definitie

Overloads

Name Description
DeleteFromJsonAsync(HttpClient, String, Type, CancellationToken)

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone bewerking.

DeleteFromJsonAsync(HttpClient, Uri, Type, CancellationToken)

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone bewerking.

DeleteFromJsonAsync(HttpClient, String, Type, JsonSerializerOptions, CancellationToken)

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone bewerking.

DeleteFromJsonAsync(HttpClient, String, Type, JsonSerializerContext, CancellationToken)

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone bewerking.

DeleteFromJsonAsync(HttpClient, Uri, Type, JsonSerializerOptions, CancellationToken)

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone bewerking.

DeleteFromJsonAsync(HttpClient, Uri, Type, JsonSerializerContext, CancellationToken)

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone bewerking.

DeleteFromJsonAsync<TValue>(HttpClient, Uri, JsonTypeInfo<TValue>, CancellationToken)

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone bewerking.

DeleteFromJsonAsync<TValue>(HttpClient, Uri, JsonSerializerOptions, CancellationToken)

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone bewerking.

DeleteFromJsonAsync<TValue>(HttpClient, String, JsonTypeInfo<TValue>, CancellationToken)

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone bewerking.

DeleteFromJsonAsync<TValue>(HttpClient, Uri, CancellationToken)

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone bewerking.

DeleteFromJsonAsync<TValue>(HttpClient, String, CancellationToken)

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone bewerking.

DeleteFromJsonAsync<TValue>(HttpClient, String, JsonSerializerOptions, CancellationToken)

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone bewerking.

DeleteFromJsonAsync(HttpClient, String, Type, CancellationToken)

Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone 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.Threading.Tasks.Task<object?> DeleteFromJsonAsync(this System.Net.Http.HttpClient client, string? requestUri, Type type, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<object?> DeleteFromJsonAsync(this System.Net.Http.HttpClient client, string? requestUri, Type type, 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 DeleteFromJsonAsync : System.Net.Http.HttpClient * string * Type * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
static member DeleteFromJsonAsync : System.Net.Http.HttpClient * string * Type * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function DeleteFromJsonAsync (client As HttpClient, requestUri As String, type As Type, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Object)

Parameters

client
HttpClient

De client die wordt gebruikt om de aanvraag te verzenden.

requestUri
String

De URI waar de aanvraag naar wordt verzonden.

type
Type

Het type object waarnaar moet worden gedeserialiseerd en geretourneerd.

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.

Retouren

Het taakobject dat de asynchrone bewerking vertegenwoordigt.

Kenmerken

Uitzonderingen

De client is null.

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

Van toepassing op

DeleteFromJsonAsync(HttpClient, Uri, Type, CancellationToken)

Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone 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.Threading.Tasks.Task<object?> DeleteFromJsonAsync(this System.Net.Http.HttpClient client, Uri? requestUri, Type type, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<object?> DeleteFromJsonAsync(this System.Net.Http.HttpClient client, Uri? requestUri, Type type, 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 DeleteFromJsonAsync : System.Net.Http.HttpClient * Uri * Type * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
static member DeleteFromJsonAsync : System.Net.Http.HttpClient * Uri * Type * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function DeleteFromJsonAsync (client As HttpClient, requestUri As Uri, type As Type, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Object)

Parameters

client
HttpClient

De client die wordt gebruikt om de aanvraag te verzenden.

requestUri
Uri

De URI waar de aanvraag naar wordt verzonden.

type
Type

Het type object waarnaar moet worden gedeserialiseerd en geretourneerd.

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.

Retouren

Het taakobject dat de asynchrone bewerking vertegenwoordigt.

Kenmerken

Uitzonderingen

De client is null.

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

Van toepassing op

DeleteFromJsonAsync(HttpClient, String, Type, JsonSerializerOptions, CancellationToken)

Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone 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.Threading.Tasks.Task<object?> DeleteFromJsonAsync(this System.Net.Http.HttpClient client, string? requestUri, Type type, System.Text.Json.JsonSerializerOptions? options, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<object?> DeleteFromJsonAsync(this System.Net.Http.HttpClient client, string? requestUri, Type type, 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 DeleteFromJsonAsync : System.Net.Http.HttpClient * string * Type * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
static member DeleteFromJsonAsync : System.Net.Http.HttpClient * string * Type * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function DeleteFromJsonAsync (client As HttpClient, requestUri As String, type As Type, options As JsonSerializerOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Object)

Parameters

client
HttpClient

De client die wordt gebruikt om de aanvraag te verzenden.

requestUri
String

De URI waar de aanvraag naar wordt verzonden.

type
Type

Het type object waarnaar moet worden gedeserialiseerd en geretourneerd.

options
JsonSerializerOptions

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

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.

Retouren

Het taakobject dat de asynchrone bewerking vertegenwoordigt.

Kenmerken

Uitzonderingen

De client is null.

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

Van toepassing op

DeleteFromJsonAsync(HttpClient, String, Type, JsonSerializerContext, CancellationToken)

Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone bewerking.

public static System.Threading.Tasks.Task<object?> DeleteFromJsonAsync(this System.Net.Http.HttpClient client, string? requestUri, Type type, System.Text.Json.Serialization.JsonSerializerContext context, System.Threading.CancellationToken cancellationToken = default);
static member DeleteFromJsonAsync : System.Net.Http.HttpClient * string * Type * System.Text.Json.Serialization.JsonSerializerContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function DeleteFromJsonAsync (client As HttpClient, requestUri As String, type As Type, context As JsonSerializerContext, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Object)

Parameters

client
HttpClient

De client die wordt gebruikt om de aanvraag te verzenden.

requestUri
String

De URI waar de aanvraag naar wordt verzonden.

type
Type

Het type object waarnaar moet worden gedeserialiseerd en geretourneerd.

context
JsonSerializerContext

De JsonSerializerContext die wordt gebruikt om het deserialisatiegedrag te beheren.

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.

Retouren

Het taakobject dat de asynchrone bewerking vertegenwoordigt.

Uitzonderingen

De client is null.

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

Van toepassing op

DeleteFromJsonAsync(HttpClient, Uri, Type, JsonSerializerOptions, CancellationToken)

Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone 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.Threading.Tasks.Task<object?> DeleteFromJsonAsync(this System.Net.Http.HttpClient client, Uri? requestUri, Type type, System.Text.Json.JsonSerializerOptions? options, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<object?> DeleteFromJsonAsync(this System.Net.Http.HttpClient client, Uri? requestUri, Type type, 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 DeleteFromJsonAsync : System.Net.Http.HttpClient * Uri * Type * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
static member DeleteFromJsonAsync : System.Net.Http.HttpClient * Uri * Type * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function DeleteFromJsonAsync (client As HttpClient, requestUri As Uri, type As Type, options As JsonSerializerOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Object)

Parameters

client
HttpClient

De client die wordt gebruikt om de aanvraag te verzenden.

requestUri
Uri

De URI waar de aanvraag naar wordt verzonden.

type
Type

Het type object waarnaar moet worden gedeserialiseerd en geretourneerd.

options
JsonSerializerOptions

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

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.

Retouren

Het taakobject dat de asynchrone bewerking vertegenwoordigt.

Kenmerken

Uitzonderingen

De client is null.

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

Van toepassing op

DeleteFromJsonAsync(HttpClient, Uri, Type, JsonSerializerContext, CancellationToken)

Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone bewerking.

public static System.Threading.Tasks.Task<object?> DeleteFromJsonAsync(this System.Net.Http.HttpClient client, Uri? requestUri, Type type, System.Text.Json.Serialization.JsonSerializerContext context, System.Threading.CancellationToken cancellationToken = default);
static member DeleteFromJsonAsync : System.Net.Http.HttpClient * Uri * Type * System.Text.Json.Serialization.JsonSerializerContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function DeleteFromJsonAsync (client As HttpClient, requestUri As Uri, type As Type, context As JsonSerializerContext, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Object)

Parameters

client
HttpClient

De client die wordt gebruikt om de aanvraag te verzenden.

requestUri
Uri

De URI waar de aanvraag naar wordt verzonden.

type
Type

Het type object waarnaar moet worden gedeserialiseerd en geretourneerd.

context
JsonSerializerContext

De JsonSerializerContext die wordt gebruikt om het deserialisatiegedrag te beheren.

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.

Retouren

Het taakobject dat de asynchrone bewerking vertegenwoordigt.

Uitzonderingen

De client is null.

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

Van toepassing op

DeleteFromJsonAsync<TValue>(HttpClient, Uri, JsonTypeInfo<TValue>, CancellationToken)

Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone bewerking.

public static System.Threading.Tasks.Task<TValue?> DeleteFromJsonAsync<TValue>(this System.Net.Http.HttpClient client, Uri? requestUri, System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue> jsonTypeInfo, System.Threading.CancellationToken cancellationToken = default);
static member DeleteFromJsonAsync : System.Net.Http.HttpClient * Uri * System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Value> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Value>
<Extension()>
Public Function DeleteFromJsonAsync(Of TValue) (client As HttpClient, requestUri As Uri, jsonTypeInfo As JsonTypeInfo(Of TValue), Optional cancellationToken As CancellationToken = Nothing) As Task(Of TValue)

Type parameters

TValue

Het doeltype dat moet worden gedeserialiseerd.

Parameters

client
HttpClient

De client die wordt gebruikt om de aanvraag te verzenden.

requestUri
Uri

De URI waar de aanvraag naar wordt verzonden.

jsonTypeInfo
JsonTypeInfo<TValue>

De JsonTypeInfo die wordt gebruikt om het deserialisatiegedrag te beheren.

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.

Retouren

Task<TValue>

Het taakobject dat de asynchrone bewerking vertegenwoordigt.

Uitzonderingen

De client is null.

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

Van toepassing op

DeleteFromJsonAsync<TValue>(HttpClient, Uri, JsonSerializerOptions, CancellationToken)

Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone 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.Threading.Tasks.Task<TValue?> DeleteFromJsonAsync<TValue>(this System.Net.Http.HttpClient client, Uri? requestUri, System.Text.Json.JsonSerializerOptions? options, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<TValue?> DeleteFromJsonAsync<TValue>(this System.Net.Http.HttpClient client, Uri? requestUri, 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 DeleteFromJsonAsync : System.Net.Http.HttpClient * Uri * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Value>
static member DeleteFromJsonAsync : System.Net.Http.HttpClient * Uri * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Value>
<Extension()>
Public Function DeleteFromJsonAsync(Of TValue) (client As HttpClient, requestUri As Uri, options As JsonSerializerOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TValue)

Type parameters

TValue

Het doeltype dat moet worden gedeserialiseerd.

Parameters

client
HttpClient

De client die wordt gebruikt om de aanvraag te verzenden.

requestUri
Uri

De URI waar de aanvraag naar wordt verzonden.

options
JsonSerializerOptions

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

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.

Retouren

Task<TValue>

Het taakobject dat de asynchrone bewerking vertegenwoordigt.

Kenmerken

Uitzonderingen

De client is null.

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

Van toepassing op

DeleteFromJsonAsync<TValue>(HttpClient, String, JsonTypeInfo<TValue>, CancellationToken)

Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone bewerking.

public static System.Threading.Tasks.Task<TValue?> DeleteFromJsonAsync<TValue>(this System.Net.Http.HttpClient client, string? requestUri, System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue> jsonTypeInfo, System.Threading.CancellationToken cancellationToken = default);
static member DeleteFromJsonAsync : System.Net.Http.HttpClient * string * System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Value> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Value>
<Extension()>
Public Function DeleteFromJsonAsync(Of TValue) (client As HttpClient, requestUri As String, jsonTypeInfo As JsonTypeInfo(Of TValue), Optional cancellationToken As CancellationToken = Nothing) As Task(Of TValue)

Type parameters

TValue

Het doeltype dat moet worden gedeserialiseerd.

Parameters

client
HttpClient

De client die wordt gebruikt om de aanvraag te verzenden.

requestUri
String

De URI waar de aanvraag naar wordt verzonden.

jsonTypeInfo
JsonTypeInfo<TValue>

De JsonTypeInfo die wordt gebruikt om het deserialisatiegedrag te beheren.

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.

Retouren

Task<TValue>

Het taakobject dat de asynchrone bewerking vertegenwoordigt.

Uitzonderingen

De client is null.

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

Van toepassing op

DeleteFromJsonAsync<TValue>(HttpClient, Uri, CancellationToken)

Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone 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.Threading.Tasks.Task<TValue?> DeleteFromJsonAsync<TValue>(this System.Net.Http.HttpClient client, Uri? requestUri, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<TValue?> DeleteFromJsonAsync<TValue>(this System.Net.Http.HttpClient client, Uri? requestUri, 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 DeleteFromJsonAsync : System.Net.Http.HttpClient * Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Value>
static member DeleteFromJsonAsync : System.Net.Http.HttpClient * Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Value>
<Extension()>
Public Function DeleteFromJsonAsync(Of TValue) (client As HttpClient, requestUri As Uri, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TValue)

Type parameters

TValue

Het doeltype dat moet worden gedeserialiseerd.

Parameters

client
HttpClient

De client die wordt gebruikt om de aanvraag te verzenden.

requestUri
Uri

De URI waar de aanvraag naar wordt verzonden.

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.

Retouren

Task<TValue>

Het taakobject dat de asynchrone bewerking vertegenwoordigt.

Kenmerken

Uitzonderingen

De client is null.

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

Van toepassing op

DeleteFromJsonAsync<TValue>(HttpClient, String, CancellationToken)

Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone 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.Threading.Tasks.Task<TValue?> DeleteFromJsonAsync<TValue>(this System.Net.Http.HttpClient client, string? requestUri, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<TValue?> DeleteFromJsonAsync<TValue>(this System.Net.Http.HttpClient client, string? requestUri, 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 DeleteFromJsonAsync : System.Net.Http.HttpClient * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Value>
static member DeleteFromJsonAsync : System.Net.Http.HttpClient * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Value>
<Extension()>
Public Function DeleteFromJsonAsync(Of TValue) (client As HttpClient, requestUri As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TValue)

Type parameters

TValue

Het doeltype dat moet worden gedeserialiseerd.

Parameters

client
HttpClient

De client die wordt gebruikt om de aanvraag te verzenden.

requestUri
String

De URI waar de aanvraag naar wordt verzonden.

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.

Retouren

Task<TValue>

Het taakobject dat de asynchrone bewerking vertegenwoordigt.

Kenmerken

Uitzonderingen

De client is null.

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

Van toepassing op

DeleteFromJsonAsync<TValue>(HttpClient, String, JsonSerializerOptions, CancellationToken)

Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs
Bron:
HttpClientJsonExtensions.Delete.cs

Verzendt een DELETE-aanvraag naar de opgegeven URI en retourneert de waarde die het resultaat is van het deserialiseren van de antwoordtekst als JSON in een asynchrone 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.Threading.Tasks.Task<TValue?> DeleteFromJsonAsync<TValue>(this System.Net.Http.HttpClient client, string? requestUri, System.Text.Json.JsonSerializerOptions? options, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<TValue?> DeleteFromJsonAsync<TValue>(this System.Net.Http.HttpClient client, string? requestUri, 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 DeleteFromJsonAsync : System.Net.Http.HttpClient * string * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Value>
static member DeleteFromJsonAsync : System.Net.Http.HttpClient * string * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Value>
<Extension()>
Public Function DeleteFromJsonAsync(Of TValue) (client As HttpClient, requestUri As String, options As JsonSerializerOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TValue)

Type parameters

TValue

Het doeltype dat moet worden gedeserialiseerd.

Parameters

client
HttpClient

De client die wordt gebruikt om de aanvraag te verzenden.

requestUri
String

De URI waar de aanvraag naar wordt verzonden.

options
JsonSerializerOptions

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

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.

Retouren

Task<TValue>

Het taakobject dat de asynchrone bewerking vertegenwoordigt.

Kenmerken

Uitzonderingen

De client is null.

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

Van toepassing op