HttpClientJsonExtensions.GetFromJsonAsync Yöntem

Tanım

Aşırı Yüklemeler

Name Description
GetFromJsonAsync(HttpClient, Uri, Type, JsonSerializerOptions, CancellationToken)

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

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

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

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

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

GetFromJsonAsync(HttpClient, Uri, Type, CancellationToken)

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

GetFromJsonAsync(HttpClient, String, Type, CancellationToken)

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

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

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

GetFromJsonAsync<TValue>(HttpClient, String, CancellationToken)

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

GetFromJsonAsync<TValue>(HttpClient, Uri, CancellationToken)

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

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

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

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

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

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

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

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

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

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

Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

[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?> GetFromJsonAsync(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?> GetFromJsonAsync(this System.Net.Http.HttpClient client, Uri? requestUri, Type type, System.Text.Json.JsonSerializerOptions? options, 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<object?> GetFromJsonAsync(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 GetFromJsonAsync : System.Net.Http.HttpClient * Uri * Type * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
static member GetFromJsonAsync : System.Net.Http.HttpClient * Uri * Type * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
[<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 GetFromJsonAsync : System.Net.Http.HttpClient * Uri * Type * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function GetFromJsonAsync (client As HttpClient, requestUri As Uri, type As Type, options As JsonSerializerOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Object)

Parametreler

client
HttpClient

İsteği göndermek için kullanılan istemci.

requestUri
Uri

İsteğin gönderildiği Uri.

type
Type

Seri durumdan çıkarılıp döndürülecek nesnenin türü.

options
JsonSerializerOptions

Seri durumdan çıkarma sırasında davranışı denetleme seçenekleri. Varsayılan seçenekler tarafından Webbelirtilen seçeneklerdir.

cancellationToken
CancellationToken

İptal bildirimini almak için diğer nesneler veya iş parçacıkları tarafından kullanılabilecek bir iptal belirteci.

Döndürülenler

Zaman uyumsuz işlemi temsil eden görev nesnesi.

Öznitelikler

Özel durumlar

İptal belirteci iptal edildi. Bu özel durum, döndürülen görevde depolanır.

Şunlara uygulanır

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

Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

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

Parametreler

client
HttpClient

İsteği göndermek için kullanılan istemci.

requestUri
String

İsteğin gönderildiği Uri.

type
Type

Seri durumdan çıkarılıp döndürülecek nesnenin türü.

context
JsonSerializerContext

Seri durumdan çıkarma davranışını denetlemek için kullanılan JsonSerializerContext.

cancellationToken
CancellationToken

İptal bildirimini almak için diğer nesneler veya iş parçacıkları tarafından kullanılabilecek bir iptal belirteci.

Döndürülenler

Zaman uyumsuz işlemi temsil eden görev nesnesi.

Özel durumlar

İptal belirteci iptal edildi. Bu özel durum, döndürülen görevde depolanır.

Şunlara uygulanır

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

Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

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

Parametreler

client
HttpClient

İsteği göndermek için kullanılan istemci.

requestUri
Uri

İsteğin gönderildiği Uri.

type
Type

Seri durumdan çıkarılıp döndürülecek nesnenin türü.

context
JsonSerializerContext

Seri durumdan çıkarma davranışını denetlemek için kullanılan JsonSerializerContext.

cancellationToken
CancellationToken

İptal bildirimini almak için diğer nesneler veya iş parçacıkları tarafından kullanılabilecek bir iptal belirteci.

Döndürülenler

Zaman uyumsuz işlemi temsil eden görev nesnesi.

Özel durumlar

İptal belirteci iptal edildi. Bu özel durum, döndürülen görevde depolanır.

Şunlara uygulanır

GetFromJsonAsync(HttpClient, Uri, Type, CancellationToken)

Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

[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?> GetFromJsonAsync(this System.Net.Http.HttpClient client, Uri? requestUri, Type type, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<object?> GetFromJsonAsync(this System.Net.Http.HttpClient client, Uri? requestUri, Type type, 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<object?> GetFromJsonAsync(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 GetFromJsonAsync : System.Net.Http.HttpClient * Uri * Type * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
static member GetFromJsonAsync : System.Net.Http.HttpClient * Uri * Type * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
[<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 GetFromJsonAsync : System.Net.Http.HttpClient * Uri * Type * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function GetFromJsonAsync (client As HttpClient, requestUri As Uri, type As Type, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Object)

Parametreler

client
HttpClient

İsteği göndermek için kullanılan istemci.

requestUri
Uri

İsteğin gönderildiği Uri.

type
Type

Seri durumdan çıkarılıp döndürülecek nesnenin türü.

cancellationToken
CancellationToken

İptal bildirimini almak için diğer nesneler veya iş parçacıkları tarafından kullanılabilecek bir iptal belirteci.

Döndürülenler

Zaman uyumsuz işlemi temsil eden görev nesnesi.

Öznitelikler

Özel durumlar

İptal belirteci iptal edildi. Bu özel durum, döndürülen görevde depolanır.

Açıklamalar

Bu yöntem seri durumdan çıkarma seçeneklerini kullanırken JsonSerializerDefaults.WebJsonSerializer seri durumdan çıkarma yöntemleri varsayılan olarak kullanmaz.

Şunlara uygulanır

GetFromJsonAsync(HttpClient, String, Type, CancellationToken)

Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

[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?> GetFromJsonAsync(this System.Net.Http.HttpClient client, string? requestUri, Type type, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<object?> GetFromJsonAsync(this System.Net.Http.HttpClient client, string? requestUri, Type type, 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<object?> GetFromJsonAsync(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 GetFromJsonAsync : System.Net.Http.HttpClient * string * Type * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
static member GetFromJsonAsync : System.Net.Http.HttpClient * string * Type * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
[<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 GetFromJsonAsync : System.Net.Http.HttpClient * string * Type * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function GetFromJsonAsync (client As HttpClient, requestUri As String, type As Type, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Object)

Parametreler

client
HttpClient

İsteği göndermek için kullanılan istemci.

requestUri
String

İsteğin gönderildiği Uri.

type
Type

Seri durumdan çıkarılıp döndürülecek nesnenin türü.

cancellationToken
CancellationToken

İptal bildirimini almak için diğer nesneler veya iş parçacıkları tarafından kullanılabilecek bir iptal belirteci.

Döndürülenler

Zaman uyumsuz işlemi temsil eden görev nesnesi.

Öznitelikler

Özel durumlar

İptal belirteci iptal edildi. Bu özel durum, döndürülen görevde depolanır.

Açıklamalar

Bu yöntem seri durumdan çıkarma seçeneklerini kullanırken JsonSerializerDefaults.WebJsonSerializer seri durumdan çıkarma yöntemleri varsayılan olarak kullanmaz.

Şunlara uygulanır

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

Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

[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?> GetFromJsonAsync(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?> GetFromJsonAsync(this System.Net.Http.HttpClient client, string? requestUri, Type type, System.Text.Json.JsonSerializerOptions? options, 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<object?> GetFromJsonAsync(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 GetFromJsonAsync : System.Net.Http.HttpClient * string * Type * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
static member GetFromJsonAsync : System.Net.Http.HttpClient * string * Type * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
[<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 GetFromJsonAsync : System.Net.Http.HttpClient * string * Type * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function GetFromJsonAsync (client As HttpClient, requestUri As String, type As Type, options As JsonSerializerOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Object)

Parametreler

client
HttpClient

İsteği göndermek için kullanılan istemci.

requestUri
String

İsteğin gönderildiği Uri.

type
Type

Seri durumdan çıkarılıp döndürülecek nesnenin türü.

options
JsonSerializerOptions

Seri durumdan çıkarma sırasında davranışı denetleme seçenekleri. Varsayılan seçenekler tarafından Webbelirtilen seçeneklerdir.

cancellationToken
CancellationToken

İptal bildirimini almak için diğer nesneler veya iş parçacıkları tarafından kullanılabilecek bir iptal belirteci.

Döndürülenler

Zaman uyumsuz işlemi temsil eden görev nesnesi.

Öznitelikler

Özel durumlar

İptal belirteci iptal edildi. Bu özel durum, döndürülen görevde depolanır.

Şunlara uygulanır

GetFromJsonAsync<TValue>(HttpClient, String, CancellationToken)

Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

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

Tür Parametreleri

TValue

Seri durumdan çıkarılası hedef türü.

Parametreler

client
HttpClient

İsteği göndermek için kullanılan istemci.

requestUri
String

İsteğin gönderildiği Uri.

cancellationToken
CancellationToken

İptal bildirimini almak için diğer nesneler veya iş parçacıkları tarafından kullanılabilecek bir iptal belirteci.

Döndürülenler

Task<TValue>

Zaman uyumsuz işlemi temsil eden görev nesnesi.

Öznitelikler

Özel durumlar

İptal belirteci iptal edildi. Bu özel durum, döndürülen görevde depolanır.

Açıklamalar

Bu yöntem seri durumdan çıkarma seçeneklerini kullanırken JsonSerializerDefaults.WebJsonSerializer seri durumdan çıkarma yöntemleri varsayılan olarak kullanmaz.

Şunlara uygulanır

GetFromJsonAsync<TValue>(HttpClient, Uri, CancellationToken)

Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

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

Tür Parametreleri

TValue

Seri durumdan çıkarılası hedef türü.

Parametreler

client
HttpClient

İsteği göndermek için kullanılan istemci.

requestUri
Uri

İsteğin gönderildiği Uri.

cancellationToken
CancellationToken

İptal bildirimini almak için diğer nesneler veya iş parçacıkları tarafından kullanılabilecek bir iptal belirteci.

Döndürülenler

Task<TValue>

Zaman uyumsuz işlemi temsil eden görev nesnesi.

Öznitelikler

Özel durumlar

İptal belirteci iptal edildi. Bu özel durum, döndürülen görevde depolanır.

Açıklamalar

Bu yöntem seri durumdan çıkarma seçeneklerini kullanırken JsonSerializerDefaults.WebJsonSerializer seri durumdan çıkarma yöntemleri varsayılan olarak kullanmaz.

Şunlara uygulanır

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

Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

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

Tür Parametreleri

TValue

Seri durumdan çıkarılası hedef türü.

Parametreler

client
HttpClient

İsteği göndermek için kullanılan istemci.

requestUri
String

İsteğin gönderildiği Uri.

options
JsonSerializerOptions

Seri durumdan çıkarma sırasında davranışı denetleme seçenekleri. Varsayılan seçenekler tarafından Webbelirtilen seçeneklerdir.

cancellationToken
CancellationToken

İptal bildirimini almak için diğer nesneler veya iş parçacıkları tarafından kullanılabilecek bir iptal belirteci.

Döndürülenler

Task<TValue>

Zaman uyumsuz işlemi temsil eden görev nesnesi.

Öznitelikler

Özel durumlar

İptal belirteci iptal edildi. Bu özel durum, döndürülen görevde depolanır.

Şunlara uygulanır

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

Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

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

Tür Parametreleri

TValue

Seri durumdan çıkarılası hedef türü.

Parametreler

client
HttpClient

İsteği göndermek için kullanılan istemci.

requestUri
String

İsteğin gönderildiği Uri.

jsonTypeInfo
JsonTypeInfo<TValue>

Seri durumdan çıkarma davranışını denetlemek için kullanılan JsonTypeInfo.

cancellationToken
CancellationToken

İptal bildirimini almak için diğer nesneler veya iş parçacıkları tarafından kullanılabilecek bir iptal belirteci.

Döndürülenler

Task<TValue>

Zaman uyumsuz işlemi temsil eden görev nesnesi.

Özel durumlar

İptal belirteci iptal edildi. Bu özel durum, döndürülen görevde depolanır.

Şunlara uygulanır

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

Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

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

Tür Parametreleri

TValue

Seri durumdan çıkarılası hedef türü.

Parametreler

client
HttpClient

İsteği göndermek için kullanılan istemci.

requestUri
Uri

İsteğin gönderildiği Uri.

options
JsonSerializerOptions

Seri durumdan çıkarma sırasında davranışı denetleme seçenekleri. Varsayılan seçenekler tarafından Webbelirtilen seçeneklerdir.

cancellationToken
CancellationToken

İptal bildirimini almak için diğer nesneler veya iş parçacıkları tarafından kullanılabilecek bir iptal belirteci.

Döndürülenler

Task<TValue>

Zaman uyumsuz işlemi temsil eden görev nesnesi.

Öznitelikler

Özel durumlar

İptal belirteci iptal edildi. Bu özel durum, döndürülen görevde depolanır.

Şunlara uygulanır

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

Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs
Kaynak:
HttpClientJsonExtensions.Get.cs

Belirtilen Uri'ye bir GET isteği gönderir ve zaman uyumsuz bir işlemde yanıt gövdesinin seri durumdan çıkarılmasından kaynaklanan değeri JSON olarak döndürür.

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

Tür Parametreleri

TValue

Seri durumdan çıkarılası hedef türü.

Parametreler

client
HttpClient

İsteği göndermek için kullanılan istemci.

requestUri
Uri

İsteğin gönderildiği Uri.

jsonTypeInfo
JsonTypeInfo<TValue>

Seri durumdan çıkarma davranışını denetlemek için kullanılan JsonTypeInfo.

cancellationToken
CancellationToken

İptal bildirimini almak için diğer nesneler veya iş parçacıkları tarafından kullanılabilecek bir iptal belirteci.

Döndürülenler

Task<TValue>

Zaman uyumsuz işlemi temsil eden görev nesnesi.

Özel durumlar

İptal belirteci iptal edildi. Bu özel durum, döndürülen görevde depolanır.

Şunlara uygulanır