HttpClientJsonExtensions.DeleteFromJsonAsync Méthode

Définition

Surcharges

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

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

DeleteFromJsonAsync(HttpClient, Uri, Type, CancellationToken)

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

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

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

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

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

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

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

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

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

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

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

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

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

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

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

DeleteFromJsonAsync<TValue>(HttpClient, Uri, CancellationToken)

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

DeleteFromJsonAsync<TValue>(HttpClient, String, CancellationToken)

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

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

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

DeleteFromJsonAsync(HttpClient, String, Type, CancellationToken)

Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

[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)

Paramètres

client
HttpClient

Client utilisé pour envoyer la requête.

requestUri
String

Uri auquel la requête est envoyée.

type
Type

Type de l’objet à désérialiser et retourner.

cancellationToken
CancellationToken

Jeton d’annulation qui peut être utilisé par d’autres objets ou threads pour recevoir une notification d’annulation.

Retours

Objet de tâche représentant l’opération asynchrone.

Attributs

Exceptions

client a la valeur null.

Le jeton d’annulation a été annulé. Cette exception est stockée dans la tâche retournée.

S’applique à

DeleteFromJsonAsync(HttpClient, Uri, Type, CancellationToken)

Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

[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)

Paramètres

client
HttpClient

Client utilisé pour envoyer la requête.

requestUri
Uri

Uri auquel la requête est envoyée.

type
Type

Type de l’objet à désérialiser et retourner.

cancellationToken
CancellationToken

Jeton d’annulation qui peut être utilisé par d’autres objets ou threads pour recevoir une notification d’annulation.

Retours

Objet de tâche représentant l’opération asynchrone.

Attributs

Exceptions

client a la valeur null.

Le jeton d’annulation a été annulé. Cette exception est stockée dans la tâche retournée.

S’applique à

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

Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

[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)

Paramètres

client
HttpClient

Client utilisé pour envoyer la requête.

requestUri
String

Uri auquel la requête est envoyée.

type
Type

Type de l’objet à désérialiser et retourner.

options
JsonSerializerOptions

Options permettant de contrôler le comportement pendant la sérialisation. Les options par défaut sont celles spécifiées par Web.

cancellationToken
CancellationToken

Jeton d’annulation qui peut être utilisé par d’autres objets ou threads pour recevoir une notification d’annulation.

Retours

Objet de tâche représentant l’opération asynchrone.

Attributs

Exceptions

client a la valeur null.

Le jeton d’annulation a été annulé. Cette exception est stockée dans la tâche retournée.

S’applique à

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

Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

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)

Paramètres

client
HttpClient

Client utilisé pour envoyer la requête.

requestUri
String

Uri auquel la requête est envoyée.

type
Type

Type de l’objet à désérialiser et retourner.

context
JsonSerializerContext

JsonSerializerContext utilisé pour contrôler le comportement de désérialisation.

cancellationToken
CancellationToken

Jeton d’annulation qui peut être utilisé par d’autres objets ou threads pour recevoir une notification d’annulation.

Retours

Objet de tâche représentant l’opération asynchrone.

Exceptions

client a la valeur null.

Le jeton d’annulation a été annulé. Cette exception est stockée dans la tâche retournée.

S’applique à

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

Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

[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)

Paramètres

client
HttpClient

Client utilisé pour envoyer la requête.

requestUri
Uri

Uri auquel la requête est envoyée.

type
Type

Type de l’objet à désérialiser et retourner.

options
JsonSerializerOptions

Options permettant de contrôler le comportement pendant la sérialisation. Les options par défaut sont celles spécifiées par Web.

cancellationToken
CancellationToken

Jeton d’annulation qui peut être utilisé par d’autres objets ou threads pour recevoir une notification d’annulation.

Retours

Objet de tâche représentant l’opération asynchrone.

Attributs

Exceptions

client a la valeur null.

Le jeton d’annulation a été annulé. Cette exception est stockée dans la tâche retournée.

S’applique à

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

Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

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)

Paramètres

client
HttpClient

Client utilisé pour envoyer la requête.

requestUri
Uri

Uri auquel la requête est envoyée.

type
Type

Type de l’objet à désérialiser et retourner.

context
JsonSerializerContext

JsonSerializerContext utilisé pour contrôler le comportement de désérialisation.

cancellationToken
CancellationToken

Jeton d’annulation qui peut être utilisé par d’autres objets ou threads pour recevoir une notification d’annulation.

Retours

Objet de tâche représentant l’opération asynchrone.

Exceptions

client a la valeur null.

Le jeton d’annulation a été annulé. Cette exception est stockée dans la tâche retournée.

S’applique à

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

Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

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)

Paramètres de type

TValue

Type cible vers lequel désérialiser.

Paramètres

client
HttpClient

Client utilisé pour envoyer la requête.

requestUri
Uri

Uri auquel la requête est envoyée.

jsonTypeInfo
JsonTypeInfo<TValue>

JsonTypeInfo utilisé pour contrôler le comportement de désérialisation.

cancellationToken
CancellationToken

Jeton d’annulation qui peut être utilisé par d’autres objets ou threads pour recevoir une notification d’annulation.

Retours

Task<TValue>

Objet de tâche représentant l’opération asynchrone.

Exceptions

client a la valeur null.

Le jeton d’annulation a été annulé. Cette exception est stockée dans la tâche retournée.

S’applique à

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

Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

[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)

Paramètres de type

TValue

Type cible vers lequel désérialiser.

Paramètres

client
HttpClient

Client utilisé pour envoyer la requête.

requestUri
Uri

Uri auquel la requête est envoyée.

options
JsonSerializerOptions

Options permettant de contrôler le comportement pendant la sérialisation. Les options par défaut sont celles spécifiées par Web.

cancellationToken
CancellationToken

Jeton d’annulation qui peut être utilisé par d’autres objets ou threads pour recevoir une notification d’annulation.

Retours

Task<TValue>

Objet de tâche représentant l’opération asynchrone.

Attributs

Exceptions

client a la valeur null.

Le jeton d’annulation a été annulé. Cette exception est stockée dans la tâche retournée.

S’applique à

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

Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

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)

Paramètres de type

TValue

Type cible vers lequel désérialiser.

Paramètres

client
HttpClient

Client utilisé pour envoyer la requête.

requestUri
String

Uri auquel la requête est envoyée.

jsonTypeInfo
JsonTypeInfo<TValue>

JsonTypeInfo utilisé pour contrôler le comportement de désérialisation.

cancellationToken
CancellationToken

Jeton d’annulation qui peut être utilisé par d’autres objets ou threads pour recevoir une notification d’annulation.

Retours

Task<TValue>

Objet de tâche représentant l’opération asynchrone.

Exceptions

client a la valeur null.

Le jeton d’annulation a été annulé. Cette exception est stockée dans la tâche retournée.

S’applique à

DeleteFromJsonAsync<TValue>(HttpClient, Uri, CancellationToken)

Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

[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)

Paramètres de type

TValue

Type cible vers lequel désérialiser.

Paramètres

client
HttpClient

Client utilisé pour envoyer la requête.

requestUri
Uri

Uri auquel la requête est envoyée.

cancellationToken
CancellationToken

Jeton d’annulation qui peut être utilisé par d’autres objets ou threads pour recevoir une notification d’annulation.

Retours

Task<TValue>

Objet de tâche représentant l’opération asynchrone.

Attributs

Exceptions

client a la valeur null.

Le jeton d’annulation a été annulé. Cette exception est stockée dans la tâche retournée.

S’applique à

DeleteFromJsonAsync<TValue>(HttpClient, String, CancellationToken)

Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

[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)

Paramètres de type

TValue

Type cible vers lequel désérialiser.

Paramètres

client
HttpClient

Client utilisé pour envoyer la requête.

requestUri
String

Uri auquel la requête est envoyée.

cancellationToken
CancellationToken

Jeton d’annulation qui peut être utilisé par d’autres objets ou threads pour recevoir une notification d’annulation.

Retours

Task<TValue>

Objet de tâche représentant l’opération asynchrone.

Attributs

Exceptions

client a la valeur null.

Le jeton d’annulation a été annulé. Cette exception est stockée dans la tâche retournée.

S’applique à

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

Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs
Source:
HttpClientJsonExtensions.Delete.cs

Envoie une requête DELETE à l’URI spécifié et retourne la valeur qui résulte de la désérialisation du corps de la réponse en tant que JSON dans une opération asynchrone.

[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)

Paramètres de type

TValue

Type cible vers lequel désérialiser.

Paramètres

client
HttpClient

Client utilisé pour envoyer la requête.

requestUri
String

Uri auquel la requête est envoyée.

options
JsonSerializerOptions

Options permettant de contrôler le comportement pendant la sérialisation. Les options par défaut sont celles spécifiées par Web.

cancellationToken
CancellationToken

Jeton d’annulation qui peut être utilisé par d’autres objets ou threads pour recevoir une notification d’annulation.

Retours

Task<TValue>

Objet de tâche représentant l’opération asynchrone.

Attributs

Exceptions

client a la valeur null.

Le jeton d’annulation a été annulé. Cette exception est stockée dans la tâche retournée.

S’applique à