BinaryData.ToObjectFromJson Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| Nom | Description |
|---|---|
| ToObjectFromJson<T>(JsonSerializerOptions) |
Convertit le BinaryData type spécifié à l’aide JsonSerializerde . |
| ToObjectFromJson<T>(JsonTypeInfo<T>) |
Convertit le BinaryData type spécifié à l’aide JsonSerializerde . |
ToObjectFromJson<T>(JsonSerializerOptions)
- Source:
- BinaryData.cs
- Source:
- BinaryData.cs
- Source:
- BinaryData.cs
- Source:
- BinaryData.cs
Convertit le BinaryData type spécifié à l’aide JsonSerializerde .
[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 T? ToObjectFromJson<T>(System.Text.Json.JsonSerializerOptions? options = default);
public T? ToObjectFromJson<T>(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.")>]
member this.ToObjectFromJson : System.Text.Json.JsonSerializerOptions -> 'T
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
À JsonSerializerOptions utiliser lors de la sérialisation vers JSON.
Retours
Données converties en type spécifié.
- Attributs
S’applique à
ToObjectFromJson<T>(JsonTypeInfo<T>)
- Source:
- BinaryData.cs
- Source:
- BinaryData.cs
- Source:
- BinaryData.cs
- Source:
- BinaryData.cs
Convertit le BinaryData type spécifié à l’aide JsonSerializerde .
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>
À JsonTypeInfo utiliser lors de la sérialisation vers JSON.
Retours
Données converties en type spécifié.