JsonContent.Create Yöntem

Tanım

Aşırı Yüklemeler

Name Description
Create(Object, JsonTypeInfo, MediaTypeHeaderValue)

JSON olarak serileştirilmiş içerecek sınıfının JsonContent yeni bir örneğini inputValue oluşturur.

Create(Object, Type, MediaTypeHeaderValue, JsonSerializerOptions)

JSON olarak serileştirilmiş içerecek sınıfının JsonContent yeni bir örneğini inputValue oluşturur.

Create<T>(T, MediaTypeHeaderValue, JsonSerializerOptions)

JSON olarak serileştirilmiş içerecek sınıfının JsonContent yeni bir örneğini inputValue oluşturur.

Create<T>(T, JsonTypeInfo<T>, MediaTypeHeaderValue)

JSON olarak serileştirilmiş içerecek sınıfının JsonContent yeni bir örneğini inputValue oluşturur.

Create(Object, JsonTypeInfo, MediaTypeHeaderValue)

Kaynak:
JsonContent.cs
Kaynak:
JsonContent.cs
Kaynak:
JsonContent.cs
Kaynak:
JsonContent.cs
Kaynak:
JsonContent.cs
Kaynak:
JsonContent.cs

JSON olarak serileştirilmiş içerecek sınıfının JsonContent yeni bir örneğini inputValue oluşturur.

public static System.Net.Http.Json.JsonContent Create(object? inputValue, System.Text.Json.Serialization.Metadata.JsonTypeInfo jsonTypeInfo, System.Net.Http.Headers.MediaTypeHeaderValue? mediaType = default);
static member Create : obj * System.Text.Json.Serialization.Metadata.JsonTypeInfo * System.Net.Http.Headers.MediaTypeHeaderValue -> System.Net.Http.Json.JsonContent
Public Shared Function Create (inputValue As Object, jsonTypeInfo As JsonTypeInfo, Optional mediaType As MediaTypeHeaderValue = Nothing) As JsonContent

Parametreler

inputValue
Object

Serileştirecek değer.

jsonTypeInfo
JsonTypeInfo

Serileştirme davranışını denetlemek için kullanılan JsonTypeInfo.

mediaType
MediaTypeHeaderValue

İçerik için kullanılacak medya türü.

Döndürülenler

Bir JsonContent örnek.

Şunlara uygulanır

Create(Object, Type, MediaTypeHeaderValue, JsonSerializerOptions)

Kaynak:
JsonContent.cs
Kaynak:
JsonContent.cs
Kaynak:
JsonContent.cs
Kaynak:
JsonContent.cs
Kaynak:
JsonContent.cs
Kaynak:
JsonContent.cs
Kaynak:
JsonContent.cs

JSON olarak serileştirilmiş içerecek sınıfının JsonContent yeni bir örneğini inputValue oluşturur.

[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.Net.Http.Json.JsonContent Create(object? inputValue, Type inputType, System.Net.Http.Headers.MediaTypeHeaderValue? mediaType = default, System.Text.Json.JsonSerializerOptions? options = default);
public static System.Net.Http.Json.JsonContent Create(object? inputValue, Type inputType, System.Net.Http.Headers.MediaTypeHeaderValue? mediaType = default, System.Text.Json.JsonSerializerOptions? options = 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.Net.Http.Json.JsonContent Create(object? inputValue, Type inputType, System.Net.Http.Headers.MediaTypeHeaderValue? mediaType = default, System.Text.Json.JsonSerializerOptions? options = 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 Create : obj * Type * System.Net.Http.Headers.MediaTypeHeaderValue * System.Text.Json.JsonSerializerOptions -> System.Net.Http.Json.JsonContent
static member Create : obj * Type * System.Net.Http.Headers.MediaTypeHeaderValue * System.Text.Json.JsonSerializerOptions -> System.Net.Http.Json.JsonContent
[<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 Create : obj * Type * System.Net.Http.Headers.MediaTypeHeaderValue * System.Text.Json.JsonSerializerOptions -> System.Net.Http.Json.JsonContent
Public Shared Function Create (inputValue As Object, inputType As Type, Optional mediaType As MediaTypeHeaderValue = Nothing, Optional options As JsonSerializerOptions = Nothing) As JsonContent

Parametreler

inputValue
Object

Serileştirecek değer.

inputType
Type

Serileştirecek değerin türü.

mediaType
MediaTypeHeaderValue

İçerik için kullanılacak medya türü.

options
JsonSerializerOptions

Serileştirme sırasında davranışı denetleme seçenekleri, varsayılan seçeneklerdir Web.

Döndürülenler

Bir JsonContent örnek.

Öznitelikler

Şunlara uygulanır

Create<T>(T, MediaTypeHeaderValue, JsonSerializerOptions)

Kaynak:
JsonContent.cs
Kaynak:
JsonContent.cs
Kaynak:
JsonContent.cs
Kaynak:
JsonContent.cs
Kaynak:
JsonContent.cs
Kaynak:
JsonContent.cs
Kaynak:
JsonContent.cs

JSON olarak serileştirilmiş içerecek sınıfının JsonContent yeni bir örneğini inputValue oluşturur.

[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.Net.Http.Json.JsonContent Create<T>(T inputValue, System.Net.Http.Headers.MediaTypeHeaderValue? mediaType = default, System.Text.Json.JsonSerializerOptions? options = default);
public static System.Net.Http.Json.JsonContent Create<T>(T inputValue, System.Net.Http.Headers.MediaTypeHeaderValue? mediaType = default, System.Text.Json.JsonSerializerOptions? options = 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.Net.Http.Json.JsonContent Create<T>(T inputValue, System.Net.Http.Headers.MediaTypeHeaderValue? mediaType = default, System.Text.Json.JsonSerializerOptions? options = 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 Create : 'T * System.Net.Http.Headers.MediaTypeHeaderValue * System.Text.Json.JsonSerializerOptions -> System.Net.Http.Json.JsonContent
static member Create : 'T * System.Net.Http.Headers.MediaTypeHeaderValue * System.Text.Json.JsonSerializerOptions -> System.Net.Http.Json.JsonContent
[<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 Create : 'T * System.Net.Http.Headers.MediaTypeHeaderValue * System.Text.Json.JsonSerializerOptions -> System.Net.Http.Json.JsonContent
Public Shared Function Create(Of T) (inputValue As T, Optional mediaType As MediaTypeHeaderValue = Nothing, Optional options As JsonSerializerOptions = Nothing) As JsonContent

Tür Parametreleri

T

Serileştirecek değerin türü.

Parametreler

inputValue
T

Serileştirecek değer.

mediaType
MediaTypeHeaderValue

İçerik için kullanılacak medya türü.

options
JsonSerializerOptions

Serileştirme sırasında davranışı denetleme seçenekleri, varsayılan seçeneklerdir Web.

Döndürülenler

Bir JsonContent örnek.

Öznitelikler

Şunlara uygulanır

Create<T>(T, JsonTypeInfo<T>, MediaTypeHeaderValue)

Kaynak:
JsonContent.cs
Kaynak:
JsonContent.cs
Kaynak:
JsonContent.cs
Kaynak:
JsonContent.cs
Kaynak:
JsonContent.cs
Kaynak:
JsonContent.cs

JSON olarak serileştirilmiş içerecek sınıfının JsonContent yeni bir örneğini inputValue oluşturur.

public static System.Net.Http.Json.JsonContent Create<T>(T? inputValue, System.Text.Json.Serialization.Metadata.JsonTypeInfo<T> jsonTypeInfo, System.Net.Http.Headers.MediaTypeHeaderValue? mediaType = default);
static member Create : 'T * System.Text.Json.Serialization.Metadata.JsonTypeInfo<'T> * System.Net.Http.Headers.MediaTypeHeaderValue -> System.Net.Http.Json.JsonContent
Public Shared Function Create(Of T) (inputValue As T, jsonTypeInfo As JsonTypeInfo(Of T), Optional mediaType As MediaTypeHeaderValue = Nothing) As JsonContent

Tür Parametreleri

T

Serileştirecek değerin türü.

Parametreler

inputValue
T

Serileştirecek değer.

jsonTypeInfo
JsonTypeInfo<T>

Serileştirme davranışını denetlemek için kullanılan JsonTypeInfo.

mediaType
MediaTypeHeaderValue

İçerik için kullanılacak medya türü.

Döndürülenler

Bir JsonContent örnek.

Şunlara uygulanır