HttpContentJsonExtensions.ReadFromJsonAsync 메서드

정의

오버로드

Name Description
ReadFromJsonAsync(HttpContent, Type, CancellationToken)

HTTP 콘텐츠를 읽고 비동기 작업에서 콘텐츠를 JSON으로 역직렬화하여 발생하는 값을 반환합니다.

ReadFromJsonAsync(HttpContent, Type, JsonSerializerOptions, CancellationToken)

HTTP 콘텐츠를 읽고 비동기 작업에서 콘텐츠를 JSON으로 역직렬화하여 발생하는 값을 반환합니다.

ReadFromJsonAsync(HttpContent, Type, JsonSerializerContext, CancellationToken)

HTTP 콘텐츠를 읽고 비동기 작업에서 콘텐츠를 JSON으로 역직렬화하여 발생하는 값을 반환합니다.

ReadFromJsonAsync<T>(HttpContent, CancellationToken)

HTTP 콘텐츠를 읽고 비동기 작업에서 콘텐츠를 JSON으로 역직렬화하여 발생하는 값을 반환합니다.

ReadFromJsonAsync<T>(HttpContent, JsonSerializerOptions, CancellationToken)

HTTP 콘텐츠를 읽고 비동기 작업에서 콘텐츠를 JSON으로 역직렬화하여 발생하는 값을 반환합니다.

ReadFromJsonAsync<T>(HttpContent, JsonTypeInfo<T>, CancellationToken)

HTTP 콘텐츠를 읽고 비동기 작업에서 콘텐츠를 JSON으로 역직렬화하여 발생하는 값을 반환합니다.

ReadFromJsonAsync(HttpContent, Type, CancellationToken)

Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs

HTTP 콘텐츠를 읽고 비동기 작업에서 콘텐츠를 JSON으로 역직렬화하여 발생하는 값을 반환합니다.

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

매개 변수

content
HttpContent

읽을 콘텐츠입니다.

type
Type

역직렬화하고 반환할 개체의 형식입니다.

cancellationToken
CancellationToken

다른 개체 또는 스레드에서 취소 알림을 받는 데 사용할 수 있는 취소 토큰입니다.

반품

비동기 작업을 나타내는 작업 개체입니다.

특성

예외

취소 토큰이 취소되었습니다. 이 예외는 반환된 작업에 저장됩니다.

적용 대상

ReadFromJsonAsync(HttpContent, Type, JsonSerializerOptions, CancellationToken)

Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs

HTTP 콘텐츠를 읽고 비동기 작업에서 콘텐츠를 JSON으로 역직렬화하여 발생하는 값을 반환합니다.

[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?> ReadFromJsonAsync(this System.Net.Http.HttpContent content, Type type, System.Text.Json.JsonSerializerOptions? options, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<object?> ReadFromJsonAsync(this System.Net.Http.HttpContent content, Type type, 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<object?> ReadFromJsonAsync(this System.Net.Http.HttpContent content, Type type, 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.")]
public static System.Threading.Tasks.Task<object?> ReadFromJsonAsync(this System.Net.Http.HttpContent content, Type type, System.Text.Json.JsonSerializerOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<object?> ReadFromJsonAsync(this System.Net.Http.HttpContent content, 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 ReadFromJsonAsync : System.Net.Http.HttpContent * Type * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
static member ReadFromJsonAsync : System.Net.Http.HttpContent * 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 ReadFromJsonAsync : System.Net.Http.HttpContent * Type * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function ReadFromJsonAsync (content As HttpContent, type As Type, options As JsonSerializerOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Object)
<Extension()>
Public Function ReadFromJsonAsync (content As HttpContent, type As Type, Optional options As JsonSerializerOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Object)

매개 변수

content
HttpContent

읽을 콘텐츠입니다.

type
Type

역직렬화하고 반환할 개체의 형식입니다.

options
JsonSerializerOptions

역직렬화 중 동작을 제어하는 옵션입니다. 기본 옵션은 .에서 지정한 Web옵션입니다.

cancellationToken
CancellationToken

다른 개체 또는 스레드에서 취소 알림을 받는 데 사용할 수 있는 취소 토큰입니다.

반품

비동기 작업을 나타내는 작업 개체입니다.

특성

예외

취소 토큰이 취소되었습니다. 이 예외는 반환된 작업에 저장됩니다.

적용 대상

ReadFromJsonAsync(HttpContent, Type, JsonSerializerContext, CancellationToken)

Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs

HTTP 콘텐츠를 읽고 비동기 작업에서 콘텐츠를 JSON으로 역직렬화하여 발생하는 값을 반환합니다.

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

매개 변수

content
HttpContent

읽을 콘텐츠입니다.

type
Type

역직렬화하고 반환할 개체의 형식입니다.

context
JsonSerializerContext

역직렬화 동작을 제어하는 데 사용되는 JsonSerializerContext입니다.

cancellationToken
CancellationToken

다른 개체 또는 스레드에서 취소 알림을 받는 데 사용할 수 있는 취소 토큰입니다.

반품

비동기 작업을 나타내는 작업 개체입니다.

예외

취소 토큰이 취소되었습니다. 이 예외는 반환된 작업에 저장됩니다.

적용 대상

ReadFromJsonAsync<T>(HttpContent, CancellationToken)

Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs

HTTP 콘텐츠를 읽고 비동기 작업에서 콘텐츠를 JSON으로 역직렬화하여 발생하는 값을 반환합니다.

[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<T?> ReadFromJsonAsync<T>(this System.Net.Http.HttpContent content, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<T?> ReadFromJsonAsync<T>(this System.Net.Http.HttpContent content, 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 ReadFromJsonAsync : System.Net.Http.HttpContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T>
static member ReadFromJsonAsync : System.Net.Http.HttpContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T>
<Extension()>
Public Function ReadFromJsonAsync(Of T) (content As HttpContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of T)

형식 매개 변수

T

역직렬화할 대상 형식입니다.

매개 변수

content
HttpContent

읽을 콘텐츠입니다.

cancellationToken
CancellationToken

다른 개체 또는 스레드에서 취소 알림을 받는 데 사용할 수 있는 취소 토큰입니다.

반품

Task<T>

비동기 작업을 나타내는 작업 개체입니다.

특성

예외

취소 토큰이 취소되었습니다. 이 예외는 반환된 작업에 저장됩니다.

적용 대상

ReadFromJsonAsync<T>(HttpContent, JsonSerializerOptions, CancellationToken)

Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs

HTTP 콘텐츠를 읽고 비동기 작업에서 콘텐츠를 JSON으로 역직렬화하여 발생하는 값을 반환합니다.

[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<T?> ReadFromJsonAsync<T>(this System.Net.Http.HttpContent content, System.Text.Json.JsonSerializerOptions? options, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<T?> ReadFromJsonAsync<T>(this System.Net.Http.HttpContent content, 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<T?> ReadFromJsonAsync<T>(this System.Net.Http.HttpContent content, 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.")]
public static System.Threading.Tasks.Task<T?> ReadFromJsonAsync<T>(this System.Net.Http.HttpContent content, System.Text.Json.JsonSerializerOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<T?> ReadFromJsonAsync<T>(this System.Net.Http.HttpContent content, 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 ReadFromJsonAsync : System.Net.Http.HttpContent * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T>
static member ReadFromJsonAsync : System.Net.Http.HttpContent * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T>
[<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 ReadFromJsonAsync : System.Net.Http.HttpContent * System.Text.Json.JsonSerializerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T>
<Extension()>
Public Function ReadFromJsonAsync(Of T) (content As HttpContent, options As JsonSerializerOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of T)
<Extension()>
Public Function ReadFromJsonAsync(Of T) (content As HttpContent, Optional options As JsonSerializerOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of T)

형식 매개 변수

T

역직렬화할 대상 형식입니다.

매개 변수

content
HttpContent

읽을 콘텐츠입니다.

options
JsonSerializerOptions

역직렬화 중 동작을 제어하는 옵션입니다. 기본 옵션은 .에서 지정한 Web옵션입니다.

cancellationToken
CancellationToken

다른 개체 또는 스레드에서 취소 알림을 받는 데 사용할 수 있는 취소 토큰입니다.

반품

Task<T>

비동기 작업을 나타내는 작업 개체입니다.

특성

예외

취소 토큰이 취소되었습니다. 이 예외는 반환된 작업에 저장됩니다.

적용 대상

ReadFromJsonAsync<T>(HttpContent, JsonTypeInfo<T>, CancellationToken)

Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs
Source:
HttpContentJsonExtensions.cs

HTTP 콘텐츠를 읽고 비동기 작업에서 콘텐츠를 JSON으로 역직렬화하여 발생하는 값을 반환합니다.

public static System.Threading.Tasks.Task<T?> ReadFromJsonAsync<T>(this System.Net.Http.HttpContent content, System.Text.Json.Serialization.Metadata.JsonTypeInfo<T> jsonTypeInfo, System.Threading.CancellationToken cancellationToken = default);
static member ReadFromJsonAsync : System.Net.Http.HttpContent * System.Text.Json.Serialization.Metadata.JsonTypeInfo<'T> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T>
<Extension()>
Public Function ReadFromJsonAsync(Of T) (content As HttpContent, jsonTypeInfo As JsonTypeInfo(Of T), Optional cancellationToken As CancellationToken = Nothing) As Task(Of T)

형식 매개 변수

T

역직렬화할 대상 형식입니다.

매개 변수

content
HttpContent

읽을 콘텐츠입니다.

jsonTypeInfo
JsonTypeInfo<T>

역직렬화 동작을 제어하는 데 사용되는 JsonTypeInfo입니다.

cancellationToken
CancellationToken

다른 개체 또는 스레드에서 취소 알림을 받는 데 사용할 수 있는 취소 토큰입니다.

반품

Task<T>

비동기 작업을 나타내는 작업 개체입니다.

예외

취소 토큰이 취소되었습니다. 이 예외는 반환된 작업에 저장됩니다.

적용 대상