HttpClientJsonExtensions.PutAsJsonAsync Methode

Definitie

Overloads

Name Description
PutAsJsonAsync<TValue>(HttpClient, Uri, TValue, JsonSerializerOptions, CancellationToken)

Verzend een PUT-aanvraag naar de opgegeven URI met de value geserialiseerde JSON in de aanvraagbody.

PutAsJsonAsync<TValue>(HttpClient, String, TValue, CancellationToken)

Verzend een PUT-aanvraag naar de opgegeven URI met de value geserialiseerde JSON in de aanvraagbody.

PutAsJsonAsync<TValue>(HttpClient, Uri, TValue, CancellationToken)

Verzend een PUT-aanvraag naar de opgegeven URI met de value geserialiseerde JSON in de aanvraagbody.

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

Verzend een PUT-aanvraag naar de opgegeven URI met de value geserialiseerde JSON in de aanvraagbody.

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

Verzend een PUT-aanvraag naar de opgegeven URI met de value geserialiseerde JSON in de aanvraagbody.

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

Verzend een PUT-aanvraag naar de opgegeven URI met de value geserialiseerde JSON in de aanvraagbody.

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

Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs

Verzend een PUT-aanvraag naar de opgegeven URI met de value geserialiseerde JSON in de aanvraagbody.

[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<System.Net.Http.HttpResponseMessage> PutAsJsonAsync<TValue>(this System.Net.Http.HttpClient client, Uri? requestUri, TValue value, System.Text.Json.JsonSerializerOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PutAsJsonAsync<TValue>(this System.Net.Http.HttpClient client, Uri? requestUri, TValue value, System.Text.Json.JsonSerializerOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
[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<System.Net.Http.HttpResponseMessage> PutAsJsonAsync<TValue>(this System.Net.Http.HttpClient client, Uri? requestUri, TValue value, System.Text.Json.JsonSerializerOptions? options = default, 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 PutAsJsonAsync : System.Net.Http.HttpClient * Uri * 'Value * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
static member PutAsJsonAsync : System.Net.Http.HttpClient * Uri * 'Value * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
[<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 PutAsJsonAsync : System.Net.Http.HttpClient * Uri * 'Value * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
<Extension()>
Public Function PutAsJsonAsync(Of TValue) (client As HttpClient, requestUri As Uri, value As TValue, Optional options As JsonSerializerOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpResponseMessage)

Type parameters

TValue

Het type van de waarde dat moet worden geserialiseerd.

Parameters

client
HttpClient

De client die wordt gebruikt om de aanvraag te verzenden.

requestUri
Uri

De URI waar de aanvraag naar wordt verzonden.

value
TValue

De waarde die moet worden geserialiseerd.

options
JsonSerializerOptions

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

cancellationToken
CancellationToken

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

Retouren

Het taakobject dat de asynchrone bewerking vertegenwoordigt.

Kenmerken

Uitzonderingen

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

Van toepassing op

PutAsJsonAsync<TValue>(HttpClient, String, TValue, CancellationToken)

Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs

Verzend een PUT-aanvraag naar de opgegeven URI met de value geserialiseerde JSON in de aanvraagbody.

public:
generic <typename TValue>
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<System::Net::Http::HttpResponseMessage ^> ^ PutAsJsonAsync(System::Net::Http::HttpClient ^ client, System::String ^ requestUri, TValue value, System::Threading::CancellationToken cancellationToken);
[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<System.Net.Http.HttpResponseMessage> PutAsJsonAsync<TValue>(this System.Net.Http.HttpClient client, string? requestUri, TValue value, System.Threading.CancellationToken cancellationToken);
public static System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PutAsJsonAsync<TValue>(this System.Net.Http.HttpClient client, string? requestUri, TValue value, System.Threading.CancellationToken cancellationToken);
[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<System.Net.Http.HttpResponseMessage> PutAsJsonAsync<TValue>(this System.Net.Http.HttpClient client, string? requestUri, TValue value, System.Threading.CancellationToken cancellationToken);
[<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 PutAsJsonAsync : System.Net.Http.HttpClient * string * 'Value * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
static member PutAsJsonAsync : System.Net.Http.HttpClient * string * 'Value * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
[<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 PutAsJsonAsync : System.Net.Http.HttpClient * string * 'Value * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
<Extension()>
Public Function PutAsJsonAsync(Of TValue) (client As HttpClient, requestUri As String, value As TValue, cancellationToken As CancellationToken) As Task(Of HttpResponseMessage)

Type parameters

TValue

Het type van de waarde dat moet worden geserialiseerd.

Parameters

client
HttpClient

De client die wordt gebruikt om de aanvraag te verzenden.

requestUri
String

De URI waar de aanvraag naar wordt verzonden.

value
TValue

De waarde die moet worden geserialiseerd.

cancellationToken
CancellationToken

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

Retouren

Het taakobject dat de asynchrone bewerking vertegenwoordigt.

Kenmerken

Uitzonderingen

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

Opmerkingen

Deze methode maakt gebruik van JsonSerializerDefaults.Web opties voor serialisatie, terwijl JsonSerializer serialisatiemethoden niet standaard.

Van toepassing op

PutAsJsonAsync<TValue>(HttpClient, Uri, TValue, CancellationToken)

Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs

Verzend een PUT-aanvraag naar de opgegeven URI met de value geserialiseerde JSON in de aanvraagbody.

public:
generic <typename TValue>
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<System::Net::Http::HttpResponseMessage ^> ^ PutAsJsonAsync(System::Net::Http::HttpClient ^ client, Uri ^ requestUri, TValue value, System::Threading::CancellationToken cancellationToken);
[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<System.Net.Http.HttpResponseMessage> PutAsJsonAsync<TValue>(this System.Net.Http.HttpClient client, Uri? requestUri, TValue value, System.Threading.CancellationToken cancellationToken);
public static System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PutAsJsonAsync<TValue>(this System.Net.Http.HttpClient client, Uri? requestUri, TValue value, System.Threading.CancellationToken cancellationToken);
[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<System.Net.Http.HttpResponseMessage> PutAsJsonAsync<TValue>(this System.Net.Http.HttpClient client, Uri? requestUri, TValue value, System.Threading.CancellationToken cancellationToken);
[<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 PutAsJsonAsync : System.Net.Http.HttpClient * Uri * 'Value * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
static member PutAsJsonAsync : System.Net.Http.HttpClient * Uri * 'Value * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
[<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 PutAsJsonAsync : System.Net.Http.HttpClient * Uri * 'Value * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
<Extension()>
Public Function PutAsJsonAsync(Of TValue) (client As HttpClient, requestUri As Uri, value As TValue, cancellationToken As CancellationToken) As Task(Of HttpResponseMessage)

Type parameters

TValue

Het type van de waarde dat moet worden geserialiseerd.

Parameters

client
HttpClient

De client die wordt gebruikt om de aanvraag te verzenden.

requestUri
Uri

De URI waar de aanvraag naar wordt verzonden.

value
TValue

De waarde die moet worden geserialiseerd.

cancellationToken
CancellationToken

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

Retouren

Het taakobject dat de asynchrone bewerking vertegenwoordigt.

Kenmerken

Uitzonderingen

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

Opmerkingen

Deze methode maakt gebruik van JsonSerializerDefaults.Web opties voor serialisatie, terwijl JsonSerializer serialisatiemethoden niet standaard.

Van toepassing op

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

Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs

Verzend een PUT-aanvraag naar de opgegeven URI met de value geserialiseerde JSON in de aanvraagbody.

[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<System.Net.Http.HttpResponseMessage> PutAsJsonAsync<TValue>(this System.Net.Http.HttpClient client, string? requestUri, TValue value, System.Text.Json.JsonSerializerOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PutAsJsonAsync<TValue>(this System.Net.Http.HttpClient client, string? requestUri, TValue value, System.Text.Json.JsonSerializerOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
[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<System.Net.Http.HttpResponseMessage> PutAsJsonAsync<TValue>(this System.Net.Http.HttpClient client, string? requestUri, TValue value, System.Text.Json.JsonSerializerOptions? options = default, 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 PutAsJsonAsync : System.Net.Http.HttpClient * string * 'Value * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
static member PutAsJsonAsync : System.Net.Http.HttpClient * string * 'Value * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
[<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 PutAsJsonAsync : System.Net.Http.HttpClient * string * 'Value * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
<Extension()>
Public Function PutAsJsonAsync(Of TValue) (client As HttpClient, requestUri As String, value As TValue, Optional options As JsonSerializerOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpResponseMessage)

Type parameters

TValue

Het type van de waarde dat moet worden geserialiseerd.

Parameters

client
HttpClient

De client die wordt gebruikt om de aanvraag te verzenden.

requestUri
String

De URI waar de aanvraag naar wordt verzonden.

value
TValue

De waarde die moet worden geserialiseerd.

options
JsonSerializerOptions

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

cancellationToken
CancellationToken

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

Retouren

Het taakobject dat de asynchrone bewerking vertegenwoordigt.

Kenmerken

Uitzonderingen

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

Van toepassing op

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

Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs

Verzend een PUT-aanvraag naar de opgegeven URI met de value geserialiseerde JSON in de aanvraagbody.

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

Type parameters

TValue

Het type van de waarde dat moet worden geserialiseerd.

Parameters

client
HttpClient

De client die wordt gebruikt om de aanvraag te verzenden.

requestUri
String

De URI waar de aanvraag naar wordt verzonden.

value
TValue

De waarde die moet worden geserialiseerd.

jsonTypeInfo
JsonTypeInfo<TValue>

De JsonTypeInfo die wordt gebruikt om het serialisatiegedrag te beheren.

cancellationToken
CancellationToken

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

Retouren

Het taakobject dat de asynchrone bewerking vertegenwoordigt.

Uitzonderingen

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

Van toepassing op

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

Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs
Bron:
HttpClientJsonExtensions.Put.cs

Verzend een PUT-aanvraag naar de opgegeven URI met de value geserialiseerde JSON in de aanvraagbody.

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

Type parameters

TValue

Het type van de waarde dat moet worden geserialiseerd.

Parameters

client
HttpClient

De client die wordt gebruikt om de aanvraag te verzenden.

requestUri
Uri

De URI waar de aanvraag naar wordt verzonden.

value
TValue

De waarde die moet worden geserialiseerd.

jsonTypeInfo
JsonTypeInfo<TValue>

De JsonTypeInfo die wordt gebruikt om het serialisatiegedrag te beheren.

cancellationToken
CancellationToken

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

Retouren

Het taakobject dat de asynchrone bewerking vertegenwoordigt.

Uitzonderingen

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

Van toepassing op