BinaryData.FromObjectAsJson Metódus

Definíció

Túlterhelések

Name Description
FromObjectAsJson<T>(T, JsonTypeInfo<T>)

Létrehoz egy példányt BinaryData a megadott objektum szerializálásával a JsonSerializer.

FromObjectAsJson<T>(T, JsonSerializerOptions)

Létrehoz egy példányt BinaryData a megadott objektum szerializálásával a JsonSerializer.

FromObjectAsJson<T>(T, JsonTypeInfo<T>)

Forrás:
BinaryData.cs
Forrás:
BinaryData.cs
Forrás:
BinaryData.cs
Forrás:
BinaryData.cs

Létrehoz egy példányt BinaryData a megadott objektum szerializálásával a JsonSerializer.

public:
generic <typename T>
 static BinaryData ^ FromObjectAsJson(T jsonSerializable, System::Text::Json::Serialization::Metadata::JsonTypeInfo<T> ^ jsonTypeInfo);
public static BinaryData FromObjectAsJson<T>(T jsonSerializable, System.Text.Json.Serialization.Metadata.JsonTypeInfo<T> jsonTypeInfo);
static member FromObjectAsJson : 'T * System.Text.Json.Serialization.Metadata.JsonTypeInfo<'T> -> BinaryData
Public Shared Function FromObjectAsJson(Of T) (jsonSerializable As T, jsonTypeInfo As JsonTypeInfo(Of T)) As BinaryData

Típusparaméterek

T

Az adatok szerializálásához használandó típus.

Paraméterek

jsonSerializable
T

A használni kívánt adatok.

jsonTypeInfo
JsonTypeInfo<T>

A JsonTypeInfo JSON-ra való szerializáláshoz használandó.

Válaszok

A JSON-reprezentáció UTF-8 kódolását jelképező jsonSerializableérték.

Lásd még

A következőre érvényes:

FromObjectAsJson<T>(T, JsonSerializerOptions)

Forrás:
BinaryData.cs
Forrás:
BinaryData.cs
Forrás:
BinaryData.cs
Forrás:
BinaryData.cs

Létrehoz egy példányt BinaryData a megadott objektum szerializálásával a JsonSerializer.

[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed.")]
public static BinaryData FromObjectAsJson<T>(T jsonSerializable, System.Text.Json.JsonSerializerOptions? options = default);
public static BinaryData FromObjectAsJson<T>(T jsonSerializable, System.Text.Json.JsonSerializerOptions? options = default);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed.")>]
static member FromObjectAsJson : 'T * System.Text.Json.JsonSerializerOptions -> BinaryData
static member FromObjectAsJson : 'T * System.Text.Json.JsonSerializerOptions -> BinaryData
Public Shared Function FromObjectAsJson(Of T) (jsonSerializable As T, Optional options As JsonSerializerOptions = Nothing) As BinaryData

Típusparaméterek

T

Az adatok szerializálásához használandó típus.

Paraméterek

jsonSerializable
T

A használni kívánt adatok.

options
JsonSerializerOptions

A JSON-ra való szerializáláskor használható lehetőségek.

Válaszok

A JSON-reprezentáció UTF-8 kódolását jelképező jsonSerializableérték.

Attribútumok

Lásd még

A következőre érvényes: