ChatRole.Converter Classe
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.
Fournit un JsonConverter<T> outil de sérialisation des ChatRole instances.
public: ref class ChatRole::Converter sealed : System::Text::Json::Serialization::JsonConverter<Microsoft::Extensions::AI::ChatRole>
public sealed class ChatRole.Converter : System.Text.Json.Serialization.JsonConverter<Microsoft.Extensions.AI.ChatRole>
type ChatRole.Converter = class
inherit JsonConverter<ChatRole>
Public NotInheritable Class ChatRole.Converter
Inherits JsonConverter(Of ChatRole)
- Héritage
Constructeurs
| Nom | Description |
|---|---|
| ChatRole.Converter() |
Fournit un JsonConverter<T> outil de sérialisation des ChatRole instances. |
Propriétés
| Nom | Description |
|---|---|
| HandleNull |
Obtient une valeur qui indique si |
| Type |
Obtient le type en cours de conversion par l’instance de convertisseur actuelle. (Hérité de JsonConverter<T>) |
Méthodes
| Nom | Description |
|---|---|
| CanConvert(Type) |
Détermine si le type spécifié peut être converti. (Hérité de JsonConverter<T>) |
| Read(Utf8JsonReader, Type, JsonSerializerOptions) |
Lit et convertit le JSON en type |
| ReadAsPropertyName(Utf8JsonReader, Type, JsonSerializerOptions) |
Lit une clé de dictionnaire à partir d’un nom de propriété JSON. (Hérité de JsonConverter<T>) |
| Write(Utf8JsonWriter, ChatRole, JsonSerializerOptions) |
Écrit une valeur spécifiée en tant que JSON. |
| Write(Utf8JsonWriter, T, JsonSerializerOptions) |
Écrit une valeur spécifiée en tant que JSON. (Hérité de JsonConverter<T>) |
| WriteAsPropertyName(Utf8JsonWriter, T, JsonSerializerOptions) |
Écrit une clé de dictionnaire en tant que nom de propriété JSON. (Hérité de JsonConverter<T>) |