JsonSerializer.Serialize Yöntem

Tanım

Aşırı Yüklemeler

Serialize(Stream, Object, Type, JsonSerializerContext)

Sağlanan değeri UTF-8 kodlanmış JSON metnine dönüştürür ve Streamyazar.

Serialize(Utf8JsonWriter, Object, Type, JsonSerializerContext)

Sağlanan yazıcıya bir JSON değeri (nesneler veya diziler dahil) yazar.

Serialize(Utf8JsonWriter, Object, Type, JsonSerializerOptions)

Belirtilen türün JSON gösterimini sağlanan yazıcıya yazar.

Serialize(Utf8JsonWriter, Object, JsonTypeInfo)

Sağlanan yazıcıya bir JSON değeri (nesneler veya diziler dahil) yazar.

Serialize(Stream, Object, Type, JsonSerializerOptions)

Sağlanan değeri UTF-8 kodlanmış JSON metnine dönüştürür ve Streamyazar.

Serialize(Object, Type, JsonSerializerOptions)

Belirtilen türün değerini JSON dizesine dönüştürür.

Serialize(Stream, Object, JsonTypeInfo)

Sağlanan değeri UTF-8 kodlanmış JSON metnine dönüştürür ve Streamyazar.

Serialize(Object, JsonTypeInfo)

Sağlanan değeri bir Stringdönüştürür.

Serialize(Object, Type, JsonSerializerContext)

Sağlanan değeri bir Stringdönüştürür.

Serialize<TValue>(Utf8JsonWriter, TValue, JsonSerializerOptions)

Sağlanan yazıcıya genel tür parametresi tarafından belirtilen bir türün JSON gösterimini yazar.

Serialize<TValue>(TValue, JsonSerializerOptions)

Genel tür parametresi tarafından belirtilen türün değerini JSON dizesine dönüştürür.

Serialize<TValue>(TValue, JsonTypeInfo<TValue>)

Sağlanan değeri bir Stringdönüştürür.

Serialize<TValue>(Stream, TValue, JsonSerializerOptions)

Sağlanan değeri UTF-8 kodlanmış JSON metnine dönüştürür ve Streamyazar.

Serialize<TValue>(Stream, TValue, JsonTypeInfo<TValue>)

Sağlanan değeri UTF-8 kodlanmış JSON metnine dönüştürür ve Streamyazar.

Serialize<TValue>(Utf8JsonWriter, TValue, JsonTypeInfo<TValue>)

Sağlanan yazıcıya bir JSON değeri (nesneler veya diziler dahil) yazar.

Serialize(Stream, Object, Type, JsonSerializerContext)

Kaynak:
JsonSerializer.Write.Stream.cs
Kaynak:
JsonSerializer.Write.Stream.cs
Kaynak:
JsonSerializer.Write.Stream.cs

Sağlanan değeri UTF-8 kodlanmış JSON metnine dönüştürür ve Streamyazar.

public:
 static void Serialize(System::IO::Stream ^ utf8Json, System::Object ^ value, Type ^ inputType, System::Text::Json::Serialization::JsonSerializerContext ^ context);
public static void Serialize (System.IO.Stream utf8Json, object? value, Type inputType, System.Text.Json.Serialization.JsonSerializerContext context);
static member Serialize : System.IO.Stream * obj * Type * System.Text.Json.Serialization.JsonSerializerContext -> unit
Public Sub Serialize (utf8Json As Stream, value As Object, inputType As Type, context As JsonSerializerContext)

Parametreler

utf8Json
Stream

UTF-8, yazacak Stream.

value
Object

Dönüştürülecek değer.

inputType
Type

Dönüştürülecek value türü.

context
JsonSerializerContext

Serileştirilebilir türler için meta veri sağlayıcısı.

Özel durumlar

inputType valueile uyumlu değildir.

utf8Json, inputTypeveya contextnull.

inputType veya serileştirilebilir üyeleri için uyumlu JsonConverter yoktur.

Şunlara uygulanır

Serialize(Utf8JsonWriter, Object, Type, JsonSerializerContext)

Kaynak:
JsonSerializer.Write.Utf8JsonWriter.cs
Kaynak:
JsonSerializer.Write.Utf8JsonWriter.cs
Kaynak:
JsonSerializer.Write.Utf8JsonWriter.cs

Sağlanan yazıcıya bir JSON değeri (nesneler veya diziler dahil) yazar.

public:
 static void Serialize(System::Text::Json::Utf8JsonWriter ^ writer, System::Object ^ value, Type ^ inputType, System::Text::Json::Serialization::JsonSerializerContext ^ context);
public static void Serialize (System.Text.Json.Utf8JsonWriter writer, object? value, Type inputType, System.Text.Json.Serialization.JsonSerializerContext context);
static member Serialize : System.Text.Json.Utf8JsonWriter * obj * Type * System.Text.Json.Serialization.JsonSerializerContext -> unit
Public Sub Serialize (writer As Utf8JsonWriter, value As Object, inputType As Type, context As JsonSerializerContext)

Parametreler

writer
Utf8JsonWriter

Yazacak bir JSON yazarı.

value
Object

Dönüştürülecek ve yazacak değer.

inputType
Type

Dönüştürülecek value türü.

context
JsonSerializerContext

Serileştirilebilir türler için meta veri sağlayıcısı.

Özel durumlar

inputType valueile uyumlu değildir.

writer veya inputTypenull.

inputType veya serileştirilebilir üyeleri için uyumlu JsonConverter yoktur.

Sağlanan contextGetTypeInfo(Type) yöntemi, türün dönüştürülmesi için null döndürür.

Şunlara uygulanır

Serialize(Utf8JsonWriter, Object, Type, JsonSerializerOptions)

Kaynak:
JsonSerializer.Write.Utf8JsonWriter.cs
Kaynak:
JsonSerializer.Write.Utf8JsonWriter.cs
Kaynak:
JsonSerializer.Write.Utf8JsonWriter.cs

Belirtilen türün JSON gösterimini sağlanan yazıcıya yazar.

public static void Serialize (System.Text.Json.Utf8JsonWriter writer, object? value, Type inputType, System.Text.Json.JsonSerializerOptions? options = default);
public static void Serialize (System.Text.Json.Utf8JsonWriter writer, object value, Type inputType, System.Text.Json.JsonSerializerOptions options = default);
static member Serialize : System.Text.Json.Utf8JsonWriter * obj * Type * System.Text.Json.JsonSerializerOptions -> unit
Public Shared Sub Serialize (writer As Utf8JsonWriter, value As Object, inputType As Type, Optional options As JsonSerializerOptions = Nothing)
Public Sub Serialize (writer As Utf8JsonWriter, value As Object, inputType As Type, Optional options As JsonSerializerOptions = Nothing)

Parametreler

writer
Utf8JsonWriter

Yazacak JSON yazıcısı.

value
Object

Dönüştürülecek ve yazacak değer.

inputType
Type

Dönüştürülecek value türü.

options
JsonSerializerOptions

Serileştirme davranışını denetleme seçenekleri.

Özel durumlar

inputType value ile uyumlu değil

writer veya inputTypenull.

inputType veya serileştirilebilir üyeleri için uyumlu JsonConverter yoktur.

Açıklamalar

Utf8JsonWriter örneğini oluşturmak için kullanılan JsonWriterOptions, çakıştığında JsonSerializerOptions önceliklidir. Bu nedenle, JsonWriterOptions.Indented, JsonWriterOptions.SkipValidationve JsonWriterOptions.Encoder yazılırken kullanılır.

Daha fazla bilgi için bkz. JSONseri hale getirme ve seri durumdan çıkarma .

Şunlara uygulanır

Serialize(Utf8JsonWriter, Object, JsonTypeInfo)

Kaynak:
JsonSerializer.Write.Utf8JsonWriter.cs
Kaynak:
JsonSerializer.Write.Utf8JsonWriter.cs

Sağlanan yazıcıya bir JSON değeri (nesneler veya diziler dahil) yazar.

public:
 static void Serialize(System::Text::Json::Utf8JsonWriter ^ writer, System::Object ^ value, System::Text::Json::Serialization::Metadata::JsonTypeInfo ^ jsonTypeInfo);
public static void Serialize (System.Text.Json.Utf8JsonWriter writer, object? value, System.Text.Json.Serialization.Metadata.JsonTypeInfo jsonTypeInfo);
static member Serialize : System.Text.Json.Utf8JsonWriter * obj * System.Text.Json.Serialization.Metadata.JsonTypeInfo -> unit
Public Sub Serialize (writer As Utf8JsonWriter, value As Object, jsonTypeInfo As JsonTypeInfo)

Parametreler

writer
Utf8JsonWriter

Yazacak yazar.

value
Object

Dönüştürülecek ve yazacak değer.

jsonTypeInfo
JsonTypeInfo

Dönüştürülecek tür hakkındaki meta veriler.

Özel durumlar

writer veya jsonTypeInfonull.

value jsonTypeInfotürüyle eşleşmiyor.

Şunlara uygulanır

Serialize(Stream, Object, Type, JsonSerializerOptions)

Kaynak:
JsonSerializer.Write.Stream.cs
Kaynak:
JsonSerializer.Write.Stream.cs
Kaynak:
JsonSerializer.Write.Stream.cs

Sağlanan değeri UTF-8 kodlanmış JSON metnine dönüştürür ve Streamyazar.

public static void Serialize (System.IO.Stream utf8Json, object? value, Type inputType, System.Text.Json.JsonSerializerOptions? options = default);
static member Serialize : System.IO.Stream * obj * Type * System.Text.Json.JsonSerializerOptions -> unit
Public Sub Serialize (utf8Json As Stream, value As Object, inputType As Type, Optional options As JsonSerializerOptions = Nothing)

Parametreler

utf8Json
Stream

UTF-8, yazacak Stream.

value
Object

Dönüştürülecek değer.

inputType
Type

Dönüştürülecek value türü.

options
JsonSerializerOptions

Dönüştürme davranışını denetleme seçenekleri.

Özel durumlar

inputType valueile uyumlu değildir.

utf8Json veya inputTypenull.

inputType veya serileştirilebilir üyeleri için uyumlu JsonConverter yoktur.

Şunlara uygulanır

Serialize(Object, Type, JsonSerializerOptions)

Kaynak:
JsonSerializer.Write.String.cs
Kaynak:
JsonSerializer.Write.String.cs
Kaynak:
JsonSerializer.Write.String.cs

Belirtilen türün değerini JSON dizesine dönüştürür.

public static string Serialize (object? value, Type inputType, System.Text.Json.JsonSerializerOptions? options = default);
public static string Serialize (object value, Type inputType, System.Text.Json.JsonSerializerOptions options = default);
static member Serialize : obj * Type * System.Text.Json.JsonSerializerOptions -> string
Public Shared Function Serialize (value As Object, inputType As Type, Optional options As JsonSerializerOptions = Nothing) As String
Public Function Serialize (value As Object, inputType As Type, Optional options As JsonSerializerOptions = Nothing) As String

Parametreler

value
Object

Dönüştürülecek değer.

inputType
Type

Dönüştürülecek value türü.

options
JsonSerializerOptions

Dönüştürme davranışını denetleme seçenekleri.

Döndürülenler

Değerin JSON dize gösterimi.

Özel durumlar

inputType valueile uyumlu değildir.

inputType null.

inputType veya serileştirilebilir üyeleri için uyumlu JsonConverter yoktur.

Açıklamalar

Uygulama dahili olarak UTF-8 kullandığından, String kullanmak UTF-8 kodlaması kullanmak kadar verimli değildir. Ayrıca bkz. SerializeToUtf8Bytes(Object, Type, JsonSerializerOptions) ve SerializeAsync(Stream, Object, Type, JsonSerializerOptions, CancellationToken).

Daha fazla bilgi için bkz. JSONseri hale getirme ve seri durumdan çıkarma .

Şunlara uygulanır

Serialize(Stream, Object, JsonTypeInfo)

Kaynak:
JsonSerializer.Write.Stream.cs
Kaynak:
JsonSerializer.Write.Stream.cs

Sağlanan değeri UTF-8 kodlanmış JSON metnine dönüştürür ve Streamyazar.

public:
 static void Serialize(System::IO::Stream ^ utf8Json, System::Object ^ value, System::Text::Json::Serialization::Metadata::JsonTypeInfo ^ jsonTypeInfo);
public static void Serialize (System.IO.Stream utf8Json, object? value, System.Text.Json.Serialization.Metadata.JsonTypeInfo jsonTypeInfo);
static member Serialize : System.IO.Stream * obj * System.Text.Json.Serialization.Metadata.JsonTypeInfo -> unit
Public Sub Serialize (utf8Json As Stream, value As Object, jsonTypeInfo As JsonTypeInfo)

Parametreler

utf8Json
Stream

UTF-8, yazacak Stream.

value
Object

Dönüştürülecek değer.

jsonTypeInfo
JsonTypeInfo

Dönüştürülecek tür hakkındaki meta veriler.

Özel durumlar

utf8Json null.

value jsonTypeInfotürüyle eşleşmiyor.

Şunlara uygulanır

Serialize(Object, JsonTypeInfo)

Kaynak:
JsonSerializer.Write.String.cs
Kaynak:
JsonSerializer.Write.String.cs

Sağlanan değeri bir Stringdönüştürür.

public:
 static System::String ^ Serialize(System::Object ^ value, System::Text::Json::Serialization::Metadata::JsonTypeInfo ^ jsonTypeInfo);
public static string Serialize (object? value, System.Text.Json.Serialization.Metadata.JsonTypeInfo jsonTypeInfo);
static member Serialize : obj * System.Text.Json.Serialization.Metadata.JsonTypeInfo -> string
Public Function Serialize (value As Object, jsonTypeInfo As JsonTypeInfo) As String

Parametreler

value
Object

Dönüştürülecek değer.

jsonTypeInfo
JsonTypeInfo

Dönüştürülecek tür hakkındaki meta veriler.

Döndürülenler

Değerin String gösterimi.

Özel durumlar

jsonTypeInfo null.

value jsonTypeInfotürüyle eşleşmiyor.

Açıklamalar

Uygulama dahili olarak UTF-8 kullandığından, String kullanmak UTF-8 kodlaması kullanmak kadar verimli değildir. Ayrıca bkz. SerializeToUtf8Bytes(Object, JsonTypeInfo) ve SerializeAsync(Stream, Object, JsonTypeInfo, CancellationToken).

Şunlara uygulanır

Serialize(Object, Type, JsonSerializerContext)

Kaynak:
JsonSerializer.Write.String.cs
Kaynak:
JsonSerializer.Write.String.cs
Kaynak:
JsonSerializer.Write.String.cs

Sağlanan değeri bir Stringdönüştürür.

public:
 static System::String ^ Serialize(System::Object ^ value, Type ^ inputType, System::Text::Json::Serialization::JsonSerializerContext ^ context);
public static string Serialize (object? value, Type inputType, System.Text.Json.Serialization.JsonSerializerContext context);
static member Serialize : obj * Type * System.Text.Json.Serialization.JsonSerializerContext -> string
Public Function Serialize (value As Object, inputType As Type, context As JsonSerializerContext) As String

Parametreler

value
Object

Dönüştürülecek değer.

inputType
Type

Dönüştürülecek value türü.

context
JsonSerializerContext

Serileştirilebilir türler için meta veri sağlayıcısı.

Döndürülenler

Değerin String gösterimi.

Özel durumlar

inputType veya serileştirilebilir üyeleri için uyumlu JsonConverter yoktur.

Sağlanan contextGetTypeInfo(Type) yöntemi, türün dönüştürülmesi için null döndürür.

inputType veya contextnull.

Açıklamalar

Uygulama dahili olarak UTF-8 kullandığından, String kullanmak UTF-8 kodlaması kullanmak kadar verimli değildir. Ayrıca bkz. SerializeToUtf8Bytes(Object, Type, JsonSerializerContext) ve SerializeAsync(Stream, Object, Type, JsonSerializerContext, CancellationToken).

Şunlara uygulanır

Serialize<TValue>(Utf8JsonWriter, TValue, JsonSerializerOptions)

Kaynak:
JsonSerializer.Write.Utf8JsonWriter.cs
Kaynak:
JsonSerializer.Write.Utf8JsonWriter.cs
Kaynak:
JsonSerializer.Write.Utf8JsonWriter.cs

Sağlanan yazıcıya genel tür parametresi tarafından belirtilen bir türün JSON gösterimini yazar.

public static void Serialize<TValue> (System.Text.Json.Utf8JsonWriter writer, TValue value, System.Text.Json.JsonSerializerOptions? options = default);
public static void Serialize<TValue> (System.Text.Json.Utf8JsonWriter writer, TValue value, System.Text.Json.JsonSerializerOptions options = default);
static member Serialize : System.Text.Json.Utf8JsonWriter * 'Value * System.Text.Json.JsonSerializerOptions -> unit
Public Shared Sub Serialize(Of TValue) (writer As Utf8JsonWriter, value As TValue, Optional options As JsonSerializerOptions = Nothing)
Public Sub Serialize(Of TValue) (writer As Utf8JsonWriter, value As TValue, Optional options As JsonSerializerOptions = Nothing)

Tür Parametreleri

TValue

Serileştirecek değerin türü.

Parametreler

writer
Utf8JsonWriter

Yazacak bir JSON yazarı.

value
TValue

Dönüştürülecek ve yazacak değer.

options
JsonSerializerOptions

Serileştirme davranışını denetleme seçenekleri.

Özel durumlar

writer null.

TValue veya serileştirilebilir üyeleri için uyumlu JsonConverter yoktur.

Açıklamalar

Utf8JsonWriter örneğini oluşturmak için kullanılan JsonWriterOptions, çakıştığında JsonSerializerOptions önceliklidir. Bu nedenle, JsonWriterOptions.Indented, JsonWriterOptions.SkipValidationve JsonWriterOptions.Encoder yazılırken kullanılır.

Daha fazla bilgi için bkz. JSONseri hale getirme ve seri durumdan çıkarma .

Şunlara uygulanır

Serialize<TValue>(TValue, JsonSerializerOptions)

Kaynak:
JsonSerializer.Write.String.cs
Kaynak:
JsonSerializer.Write.String.cs
Kaynak:
JsonSerializer.Write.String.cs

Genel tür parametresi tarafından belirtilen türün değerini JSON dizesine dönüştürür.

public static string Serialize<TValue> (TValue value, System.Text.Json.JsonSerializerOptions? options = default);
public static string Serialize<TValue> (TValue value, System.Text.Json.JsonSerializerOptions options = default);
static member Serialize : 'Value * System.Text.Json.JsonSerializerOptions -> string
Public Shared Function Serialize(Of TValue) (value As TValue, Optional options As JsonSerializerOptions = Nothing) As String
Public Function Serialize(Of TValue) (value As TValue, Optional options As JsonSerializerOptions = Nothing) As String

Tür Parametreleri

TValue

Serileştirecek değerin türü.

Parametreler

value
TValue

Dönüştürülecek değer.

options
JsonSerializerOptions

Serileştirme davranışını denetleme seçenekleri.

Döndürülenler

Değerin JSON dize gösterimi.

Özel durumlar

TValue veya serileştirilebilir üyeleri için uyumlu JsonConverter yoktur.

Açıklamalar

Uygulama dahili olarak UTF-8 kullandığından, String kullanmak UTF-8 kodlaması kullanmak kadar verimli değildir. Ayrıca bkz. SerializeToUtf8Bytes(Object, Type, JsonSerializerOptions) ve SerializeAsync(Stream, Object, Type, JsonSerializerOptions, CancellationToken).

Daha fazla bilgi için bkz. JSONseri hale getirme ve seri durumdan çıkarma .

Şunlara uygulanır

Serialize<TValue>(TValue, JsonTypeInfo<TValue>)

Kaynak:
JsonSerializer.Write.String.cs
Kaynak:
JsonSerializer.Write.String.cs
Kaynak:
JsonSerializer.Write.String.cs

Sağlanan değeri bir Stringdönüştürür.

public:
generic <typename TValue>
 static System::String ^ Serialize(TValue value, System::Text::Json::Serialization::Metadata::JsonTypeInfo<TValue> ^ jsonTypeInfo);
public static string Serialize<TValue> (TValue value, System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue> jsonTypeInfo);
static member Serialize : 'Value * System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Value> -> string
Public Function Serialize(Of TValue) (value As TValue, jsonTypeInfo As JsonTypeInfo(Of TValue)) As String

Tür Parametreleri

TValue

Serileştirecek değerin türü.

Parametreler

value
TValue

Dönüştürülecek değer.

jsonTypeInfo
JsonTypeInfo<TValue>

Dönüştürülecek tür hakkındaki meta veriler.

Döndürülenler

Değerin String gösterimi.

Özel durumlar

TValue veya serileştirilebilir üyeleri için uyumlu JsonConverter yoktur.

jsonTypeInfo null.

Açıklamalar

Uygulama dahili olarak UTF-8 kullandığından, String kullanmak UTF-8 kodlaması kullanmak kadar verimli değildir. Ayrıca bkz. SerializeToUtf8Bytes<TValue>(TValue, JsonTypeInfo<TValue>) ve SerializeAsync<TValue>(Stream, TValue, JsonTypeInfo<TValue>, CancellationToken).

Şunlara uygulanır

Serialize<TValue>(Stream, TValue, JsonSerializerOptions)

Kaynak:
JsonSerializer.Write.Stream.cs
Kaynak:
JsonSerializer.Write.Stream.cs
Kaynak:
JsonSerializer.Write.Stream.cs

Sağlanan değeri UTF-8 kodlanmış JSON metnine dönüştürür ve Streamyazar.

public static void Serialize<TValue> (System.IO.Stream utf8Json, TValue value, System.Text.Json.JsonSerializerOptions? options = default);
static member Serialize : System.IO.Stream * 'Value * System.Text.Json.JsonSerializerOptions -> unit
Public Sub Serialize(Of TValue) (utf8Json As Stream, value As TValue, Optional options As JsonSerializerOptions = Nothing)

Tür Parametreleri

TValue

Serileştirecek değerin türü.

Parametreler

utf8Json
Stream

UTF-8, yazacak Stream.

value
TValue

Dönüştürülecek değer.

options
JsonSerializerOptions

Dönüştürme davranışını denetleme seçenekleri.

Özel durumlar

utf8Json null.

TValue veya serileştirilebilir üyeleri için uyumlu JsonConverter yoktur.

Şunlara uygulanır

Serialize<TValue>(Stream, TValue, JsonTypeInfo<TValue>)

Kaynak:
JsonSerializer.Write.Stream.cs
Kaynak:
JsonSerializer.Write.Stream.cs
Kaynak:
JsonSerializer.Write.Stream.cs

Sağlanan değeri UTF-8 kodlanmış JSON metnine dönüştürür ve Streamyazar.

public:
generic <typename TValue>
 static void Serialize(System::IO::Stream ^ utf8Json, TValue value, System::Text::Json::Serialization::Metadata::JsonTypeInfo<TValue> ^ jsonTypeInfo);
public static void Serialize<TValue> (System.IO.Stream utf8Json, TValue value, System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue> jsonTypeInfo);
static member Serialize : System.IO.Stream * 'Value * System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Value> -> unit
Public Sub Serialize(Of TValue) (utf8Json As Stream, value As TValue, jsonTypeInfo As JsonTypeInfo(Of TValue))

Tür Parametreleri

TValue

Serileştirecek değerin türü.

Parametreler

utf8Json
Stream

UTF-8, yazacak Stream.

value
TValue

Dönüştürülecek değer.

jsonTypeInfo
JsonTypeInfo<TValue>

Dönüştürülecek tür hakkındaki meta veriler.

Özel durumlar

utf8Json null.

TValue veya serileştirilebilir üyeleri için uyumlu JsonConverter yoktur.

Şunlara uygulanır

Serialize<TValue>(Utf8JsonWriter, TValue, JsonTypeInfo<TValue>)

Kaynak:
JsonSerializer.Write.Utf8JsonWriter.cs
Kaynak:
JsonSerializer.Write.Utf8JsonWriter.cs
Kaynak:
JsonSerializer.Write.Utf8JsonWriter.cs

Sağlanan yazıcıya bir JSON değeri (nesneler veya diziler dahil) yazar.

public:
generic <typename TValue>
 static void Serialize(System::Text::Json::Utf8JsonWriter ^ writer, TValue value, System::Text::Json::Serialization::Metadata::JsonTypeInfo<TValue> ^ jsonTypeInfo);
public static void Serialize<TValue> (System.Text.Json.Utf8JsonWriter writer, TValue value, System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue> jsonTypeInfo);
static member Serialize : System.Text.Json.Utf8JsonWriter * 'Value * System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Value> -> unit
Public Sub Serialize(Of TValue) (writer As Utf8JsonWriter, value As TValue, jsonTypeInfo As JsonTypeInfo(Of TValue))

Tür Parametreleri

TValue

Serileştirecek değerin türü.

Parametreler

writer
Utf8JsonWriter

Yazacak yazar.

value
TValue

Dönüştürülecek ve yazacak değer.

jsonTypeInfo
JsonTypeInfo<TValue>

Dönüştürülecek tür hakkındaki meta veriler.

Özel durumlar

writer veya jsonTypeInfonull.

TValue veya serileştirilebilir üyeleri için uyumlu JsonConverter yoktur.

Şunlara uygulanır