HttpClientJsonExtensions.DeleteFromJsonAsync Método

Definição

Sobrecargas

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

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

DeleteFromJsonAsync(HttpClient, Uri, Type, CancellationToken)

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

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

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

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

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

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

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

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

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

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

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

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

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

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

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

DeleteFromJsonAsync<TValue>(HttpClient, Uri, CancellationToken)

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

DeleteFromJsonAsync<TValue>(HttpClient, String, CancellationToken)

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

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

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

DeleteFromJsonAsync(HttpClient, String, Type, CancellationToken)

Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

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

Parâmetros

client
HttpClient

O cliente costumava enviar o pedido.

requestUri
String

O Uri para onde o pedido é enviado.

type
Type

O tipo do objeto para desserializar e retornar.

cancellationToken
CancellationToken

Um token de cancelamento que pode ser usado por outros objetos ou threads para receber aviso de cancelamento.

Devoluções

O objeto tarefa que representa a operação assíncrona.

Atributos

Exceções

O client é null.

O token de cancelamento foi cancelado. Esta exceção é armazenada na tarefa devolvida.

Aplica-se a

DeleteFromJsonAsync(HttpClient, Uri, Type, CancellationToken)

Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

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

Parâmetros

client
HttpClient

O cliente costumava enviar o pedido.

requestUri
Uri

O Uri para onde o pedido é enviado.

type
Type

O tipo do objeto para desserializar e retornar.

cancellationToken
CancellationToken

Um token de cancelamento que pode ser usado por outros objetos ou threads para receber aviso de cancelamento.

Devoluções

O objeto tarefa que representa a operação assíncrona.

Atributos

Exceções

O client é null.

O token de cancelamento foi cancelado. Esta exceção é armazenada na tarefa devolvida.

Aplica-se a

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

Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

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

Parâmetros

client
HttpClient

O cliente costumava enviar o pedido.

requestUri
String

O Uri para onde o pedido é enviado.

type
Type

O tipo do objeto para desserializar e retornar.

options
JsonSerializerOptions

Opções para controlar o comportamento durante a serialização. As opções padrão são as especificadas por Web.

cancellationToken
CancellationToken

Um token de cancelamento que pode ser usado por outros objetos ou threads para receber aviso de cancelamento.

Devoluções

O objeto tarefa que representa a operação assíncrona.

Atributos

Exceções

O client é null.

O token de cancelamento foi cancelado. Esta exceção é armazenada na tarefa devolvida.

Aplica-se a

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

Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

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)

Parâmetros

client
HttpClient

O cliente costumava enviar o pedido.

requestUri
String

O Uri para onde o pedido é enviado.

type
Type

O tipo do objeto para desserializar e retornar.

context
JsonSerializerContext

O JsonSerializerContext era usado para controlar o comportamento de desserialização.

cancellationToken
CancellationToken

Um token de cancelamento que pode ser usado por outros objetos ou threads para receber aviso de cancelamento.

Devoluções

O objeto tarefa que representa a operação assíncrona.

Exceções

O client é null.

O token de cancelamento foi cancelado. Esta exceção é armazenada na tarefa devolvida.

Aplica-se a

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

Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

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

Parâmetros

client
HttpClient

O cliente costumava enviar o pedido.

requestUri
Uri

O Uri para onde o pedido é enviado.

type
Type

O tipo do objeto para desserializar e retornar.

options
JsonSerializerOptions

Opções para controlar o comportamento durante a serialização. As opções padrão são as especificadas por Web.

cancellationToken
CancellationToken

Um token de cancelamento que pode ser usado por outros objetos ou threads para receber aviso de cancelamento.

Devoluções

O objeto tarefa que representa a operação assíncrona.

Atributos

Exceções

O client é null.

O token de cancelamento foi cancelado. Esta exceção é armazenada na tarefa devolvida.

Aplica-se a

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

Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

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)

Parâmetros

client
HttpClient

O cliente costumava enviar o pedido.

requestUri
Uri

O Uri para onde o pedido é enviado.

type
Type

O tipo do objeto para desserializar e retornar.

context
JsonSerializerContext

O JsonSerializerContext era usado para controlar o comportamento de desserialização.

cancellationToken
CancellationToken

Um token de cancelamento que pode ser usado por outros objetos ou threads para receber aviso de cancelamento.

Devoluções

O objeto tarefa que representa a operação assíncrona.

Exceções

O client é null.

O token de cancelamento foi cancelado. Esta exceção é armazenada na tarefa devolvida.

Aplica-se a

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

Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

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)

Parâmetros de Tipo Genérico

TValue

O tipo de alvo para desserializar.

Parâmetros

client
HttpClient

O cliente costumava enviar o pedido.

requestUri
Uri

O Uri para onde o pedido é enviado.

jsonTypeInfo
JsonTypeInfo<TValue>

O JsonTypeInfo era usado para controlar o comportamento de desserialização.

cancellationToken
CancellationToken

Um token de cancelamento que pode ser usado por outros objetos ou threads para receber aviso de cancelamento.

Devoluções

Task<TValue>

O objeto tarefa que representa a operação assíncrona.

Exceções

O client é null.

O token de cancelamento foi cancelado. Esta exceção é armazenada na tarefa devolvida.

Aplica-se a

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

Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

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

Parâmetros de Tipo Genérico

TValue

O tipo de alvo para desserializar.

Parâmetros

client
HttpClient

O cliente costumava enviar o pedido.

requestUri
Uri

O Uri para onde o pedido é enviado.

options
JsonSerializerOptions

Opções para controlar o comportamento durante a serialização. As opções padrão são as especificadas por Web.

cancellationToken
CancellationToken

Um token de cancelamento que pode ser usado por outros objetos ou threads para receber aviso de cancelamento.

Devoluções

Task<TValue>

O objeto tarefa que representa a operação assíncrona.

Atributos

Exceções

O client é null.

O token de cancelamento foi cancelado. Esta exceção é armazenada na tarefa devolvida.

Aplica-se a

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

Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

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)

Parâmetros de Tipo Genérico

TValue

O tipo de alvo para desserializar.

Parâmetros

client
HttpClient

O cliente costumava enviar o pedido.

requestUri
String

O Uri para onde o pedido é enviado.

jsonTypeInfo
JsonTypeInfo<TValue>

O JsonTypeInfo era usado para controlar o comportamento de desserialização.

cancellationToken
CancellationToken

Um token de cancelamento que pode ser usado por outros objetos ou threads para receber aviso de cancelamento.

Devoluções

Task<TValue>

O objeto tarefa que representa a operação assíncrona.

Exceções

O client é null.

O token de cancelamento foi cancelado. Esta exceção é armazenada na tarefa devolvida.

Aplica-se a

DeleteFromJsonAsync<TValue>(HttpClient, Uri, CancellationToken)

Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

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

Parâmetros de Tipo Genérico

TValue

O tipo de alvo para desserializar.

Parâmetros

client
HttpClient

O cliente costumava enviar o pedido.

requestUri
Uri

O Uri para onde o pedido é enviado.

cancellationToken
CancellationToken

Um token de cancelamento que pode ser usado por outros objetos ou threads para receber aviso de cancelamento.

Devoluções

Task<TValue>

O objeto tarefa que representa a operação assíncrona.

Atributos

Exceções

O client é null.

O token de cancelamento foi cancelado. Esta exceção é armazenada na tarefa devolvida.

Aplica-se a

DeleteFromJsonAsync<TValue>(HttpClient, String, CancellationToken)

Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

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

Parâmetros de Tipo Genérico

TValue

O tipo de alvo para desserializar.

Parâmetros

client
HttpClient

O cliente costumava enviar o pedido.

requestUri
String

O Uri para onde o pedido é enviado.

cancellationToken
CancellationToken

Um token de cancelamento que pode ser usado por outros objetos ou threads para receber aviso de cancelamento.

Devoluções

Task<TValue>

O objeto tarefa que representa a operação assíncrona.

Atributos

Exceções

O client é null.

O token de cancelamento foi cancelado. Esta exceção é armazenada na tarefa devolvida.

Aplica-se a

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

Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs
Origem:
HttpClientJsonExtensions.Delete.cs

Envia um pedido DELETE para o Uri especificado e devolve o valor resultante da desserialização do corpo da resposta como JSON numa operação assíncrona.

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

Parâmetros de Tipo Genérico

TValue

O tipo de alvo para desserializar.

Parâmetros

client
HttpClient

O cliente costumava enviar o pedido.

requestUri
String

O Uri para onde o pedido é enviado.

options
JsonSerializerOptions

Opções para controlar o comportamento durante a serialização. As opções padrão são as especificadas por Web.

cancellationToken
CancellationToken

Um token de cancelamento que pode ser usado por outros objetos ou threads para receber aviso de cancelamento.

Devoluções

Task<TValue>

O objeto tarefa que representa a operação assíncrona.

Atributos

Exceções

O client é null.

O token de cancelamento foi cancelado. Esta exceção é armazenada na tarefa devolvida.

Aplica-se a