HttpClientJsonExtensions.DeleteFromJsonAsync Methode

Definition

Überlädt

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

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

DeleteFromJsonAsync(HttpClient, Uri, Type, CancellationToken)

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

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

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

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

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

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

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

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

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

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

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

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

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

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

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

DeleteFromJsonAsync<TValue>(HttpClient, Uri, CancellationToken)

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

DeleteFromJsonAsync<TValue>(HttpClient, String, CancellationToken)

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

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

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

DeleteFromJsonAsync(HttpClient, String, Type, CancellationToken)

Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

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

Parameter

client
HttpClient

Der Client, der zum Senden der Anforderung verwendet wurde.

requestUri
String

Der URI, an den die Anforderung gesendet wird.

type
Type

Der Typ des Objekts, das deserialisiert und zurückgegeben werden soll.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Das Aufgabenobjekt, das den asynchronen Vorgang darstellt.

Attribute

Ausnahmen

client ist null.

Das Abbruchtoken wurde abgebrochen. Diese Ausnahme wird in der zurückgegebenen Aufgabe gespeichert.

Gilt für:

DeleteFromJsonAsync(HttpClient, Uri, Type, CancellationToken)

Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

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

Parameter

client
HttpClient

Der Client, der zum Senden der Anforderung verwendet wurde.

requestUri
Uri

Der URI, an den die Anforderung gesendet wird.

type
Type

Der Typ des Objekts, das deserialisiert und zurückgegeben werden soll.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Das Aufgabenobjekt, das den asynchronen Vorgang darstellt.

Attribute

Ausnahmen

client ist null.

Das Abbruchtoken wurde abgebrochen. Diese Ausnahme wird in der zurückgegebenen Aufgabe gespeichert.

Gilt für:

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

Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

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

Parameter

client
HttpClient

Der Client, der zum Senden der Anforderung verwendet wurde.

requestUri
String

Der URI, an den die Anforderung gesendet wird.

type
Type

Der Typ des Objekts, das deserialisiert und zurückgegeben werden soll.

options
JsonSerializerOptions

Optionen zum Steuern des Verhaltens während der Serialisierung. Die Standardoptionen sind die von Web.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Das Aufgabenobjekt, das den asynchronen Vorgang darstellt.

Attribute

Ausnahmen

client ist null.

Das Abbruchtoken wurde abgebrochen. Diese Ausnahme wird in der zurückgegebenen Aufgabe gespeichert.

Gilt für:

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

Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

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)

Parameter

client
HttpClient

Der Client, der zum Senden der Anforderung verwendet wurde.

requestUri
String

Der URI, an den die Anforderung gesendet wird.

type
Type

Der Typ des Objekts, das deserialisiert und zurückgegeben werden soll.

context
JsonSerializerContext

Der jsonSerializerContext, der zum Steuern des Deserialisierungsverhaltens verwendet wird.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Das Aufgabenobjekt, das den asynchronen Vorgang darstellt.

Ausnahmen

client ist null.

Das Abbruchtoken wurde abgebrochen. Diese Ausnahme wird in der zurückgegebenen Aufgabe gespeichert.

Gilt für:

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

Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

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

Parameter

client
HttpClient

Der Client, der zum Senden der Anforderung verwendet wurde.

requestUri
Uri

Der URI, an den die Anforderung gesendet wird.

type
Type

Der Typ des Objekts, das deserialisiert und zurückgegeben werden soll.

options
JsonSerializerOptions

Optionen zum Steuern des Verhaltens während der Serialisierung. Die Standardoptionen sind die von Web.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Das Aufgabenobjekt, das den asynchronen Vorgang darstellt.

Attribute

Ausnahmen

client ist null.

Das Abbruchtoken wurde abgebrochen. Diese Ausnahme wird in der zurückgegebenen Aufgabe gespeichert.

Gilt für:

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

Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

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)

Parameter

client
HttpClient

Der Client, der zum Senden der Anforderung verwendet wurde.

requestUri
Uri

Der URI, an den die Anforderung gesendet wird.

type
Type

Der Typ des Objekts, das deserialisiert und zurückgegeben werden soll.

context
JsonSerializerContext

Der jsonSerializerContext, der zum Steuern des Deserialisierungsverhaltens verwendet wird.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Das Aufgabenobjekt, das den asynchronen Vorgang darstellt.

Ausnahmen

client ist null.

Das Abbruchtoken wurde abgebrochen. Diese Ausnahme wird in der zurückgegebenen Aufgabe gespeichert.

Gilt für:

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

Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

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)

Typparameter

TValue

Der Zieltyp, der deserialisiert werden soll.

Parameter

client
HttpClient

Der Client, der zum Senden der Anforderung verwendet wurde.

requestUri
Uri

Der URI, an den die Anforderung gesendet wird.

jsonTypeInfo
JsonTypeInfo<TValue>

Die jsonTypeInfo, die zum Steuern des Deserialisierungsverhaltens verwendet wird.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Task<TValue>

Das Aufgabenobjekt, das den asynchronen Vorgang darstellt.

Ausnahmen

client ist null.

Das Abbruchtoken wurde abgebrochen. Diese Ausnahme wird in der zurückgegebenen Aufgabe gespeichert.

Gilt für:

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

Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

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

Typparameter

TValue

Der Zieltyp, der deserialisiert werden soll.

Parameter

client
HttpClient

Der Client, der zum Senden der Anforderung verwendet wurde.

requestUri
Uri

Der URI, an den die Anforderung gesendet wird.

options
JsonSerializerOptions

Optionen zum Steuern des Verhaltens während der Serialisierung. Die Standardoptionen sind die von Web.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Task<TValue>

Das Aufgabenobjekt, das den asynchronen Vorgang darstellt.

Attribute

Ausnahmen

client ist null.

Das Abbruchtoken wurde abgebrochen. Diese Ausnahme wird in der zurückgegebenen Aufgabe gespeichert.

Gilt für:

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

Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

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)

Typparameter

TValue

Der Zieltyp, der deserialisiert werden soll.

Parameter

client
HttpClient

Der Client, der zum Senden der Anforderung verwendet wurde.

requestUri
String

Der URI, an den die Anforderung gesendet wird.

jsonTypeInfo
JsonTypeInfo<TValue>

Die jsonTypeInfo, die zum Steuern des Deserialisierungsverhaltens verwendet wird.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Task<TValue>

Das Aufgabenobjekt, das den asynchronen Vorgang darstellt.

Ausnahmen

client ist null.

Das Abbruchtoken wurde abgebrochen. Diese Ausnahme wird in der zurückgegebenen Aufgabe gespeichert.

Gilt für:

DeleteFromJsonAsync<TValue>(HttpClient, Uri, CancellationToken)

Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

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

Typparameter

TValue

Der Zieltyp, der deserialisiert werden soll.

Parameter

client
HttpClient

Der Client, der zum Senden der Anforderung verwendet wurde.

requestUri
Uri

Der URI, an den die Anforderung gesendet wird.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Task<TValue>

Das Aufgabenobjekt, das den asynchronen Vorgang darstellt.

Attribute

Ausnahmen

client ist null.

Das Abbruchtoken wurde abgebrochen. Diese Ausnahme wird in der zurückgegebenen Aufgabe gespeichert.

Gilt für:

DeleteFromJsonAsync<TValue>(HttpClient, String, CancellationToken)

Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

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

Typparameter

TValue

Der Zieltyp, der deserialisiert werden soll.

Parameter

client
HttpClient

Der Client, der zum Senden der Anforderung verwendet wurde.

requestUri
String

Der URI, an den die Anforderung gesendet wird.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Task<TValue>

Das Aufgabenobjekt, das den asynchronen Vorgang darstellt.

Attribute

Ausnahmen

client ist null.

Das Abbruchtoken wurde abgebrochen. Diese Ausnahme wird in der zurückgegebenen Aufgabe gespeichert.

Gilt für:

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

Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs
Quelle:
HttpClientJsonExtensions.Delete.cs

Sendet eine DELETE-Anforderung an den angegebenen URI und gibt den Wert zurück, der aus der Deserialisierung des Antworttexts als JSON in einem asynchronen Vorgang resultiert.

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

Typparameter

TValue

Der Zieltyp, der deserialisiert werden soll.

Parameter

client
HttpClient

Der Client, der zum Senden der Anforderung verwendet wurde.

requestUri
String

Der URI, an den die Anforderung gesendet wird.

options
JsonSerializerOptions

Optionen zum Steuern des Verhaltens während der Serialisierung. Die Standardoptionen sind die von Web.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Task<TValue>

Das Aufgabenobjekt, das den asynchronen Vorgang darstellt.

Attribute

Ausnahmen

client ist null.

Das Abbruchtoken wurde abgebrochen. Diese Ausnahme wird in der zurückgegebenen Aufgabe gespeichert.

Gilt für: