BinaryData.ToObjectFromJson Méthode

Définition

Surcharges

ToObjectFromJson<T>(JsonSerializerOptions)

Convertit le en type spécifié à l’aide BinaryDataJsonSerializerde .

ToObjectFromJson<T>(JsonTypeInfo<T>)

Convertit le en type spécifié à l’aide BinaryDataJsonSerializerde .

ToObjectFromJson<T>(JsonSerializerOptions)

Source:
BinaryData.cs
Source:
BinaryData.cs
Source:
BinaryData.cs
Source:
BinaryData.cs

Convertit le en type spécifié à l’aide BinaryDataJsonSerializerde .

public T ToObjectFromJson<T> (System.Text.Json.JsonSerializerOptions? options = default);
public T? ToObjectFromJson<T> (System.Text.Json.JsonSerializerOptions? options = default);
member this.ToObjectFromJson : System.Text.Json.JsonSerializerOptions -> 'T
Public Function ToObjectFromJson(Of T) (Optional options As JsonSerializerOptions = Nothing) As T

Paramètres de type

T

Type vers lequel les données doivent être converties.

Paramètres

options
JsonSerializerOptions

à utiliser lors de la JsonSerializerOptions sérialisation au format JSON.

Retours

T

Données converties vers le type spécifié.

S’applique à

ToObjectFromJson<T>(JsonTypeInfo<T>)

Source:
BinaryData.cs
Source:
BinaryData.cs
Source:
BinaryData.cs
Source:
BinaryData.cs

Convertit le en type spécifié à l’aide BinaryDataJsonSerializerde .

public:
generic <typename T>
 T ToObjectFromJson(System::Text::Json::Serialization::Metadata::JsonTypeInfo<T> ^ jsonTypeInfo);
public T? ToObjectFromJson<T> (System.Text.Json.Serialization.Metadata.JsonTypeInfo<T> jsonTypeInfo);
member this.ToObjectFromJson : System.Text.Json.Serialization.Metadata.JsonTypeInfo<'T> -> 'T
Public Function ToObjectFromJson(Of T) (jsonTypeInfo As JsonTypeInfo(Of T)) As T

Paramètres de type

T

Type vers lequel les données doivent être converties.

Paramètres

jsonTypeInfo
JsonTypeInfo<T>

à utiliser lors de la JsonTypeInfo sérialisation au format JSON.

Retours

T

Données converties vers le type spécifié.

S’applique à