JsonProperty.WriteTo(Utf8JsonWriter) Méthode

Définition

Écrit la propriété dans l’enregistreur fourni en tant que propriété d’objet JSON nommée.

public:
 void WriteTo(System::Text::Json::Utf8JsonWriter ^ writer);
public void WriteTo(System.Text.Json.Utf8JsonWriter writer);
member this.WriteTo : System.Text.Json.Utf8JsonWriter -> unit
Public Sub WriteTo (writer As Utf8JsonWriter)

Paramètres

writer
Utf8JsonWriter

Enregistreur dans lequel écrire la propriété.

Exceptions

writer a la valeur null.

Name est trop volumineux pour être une propriété d’objet JSON.

Les ValueKind données de cette propriété Value JSON entraînent un JSON non valide.

Le parent JsonDocument a été supprimé.

S’applique à