Utf8JsonWriter.WriteStartObject 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 |
|---|---|
| WriteStartObject(JsonEncodedText) |
Écrit le début d’un objet JSON avec un nom de propriété précodé comme clé. |
| WriteStartObject(ReadOnlySpan<Char>) |
Écrit le début d’un objet JSON avec un nom de propriété spécifié en tant qu’étendue de caractères en lecture seule comme clé. |
| WriteStartObject(String) |
Écrit le début d’un objet JSON avec un nom de propriété spécifié sous la forme d’une chaîne comme clé. |
| WriteStartObject() |
Écrit le début d’un objet JSON. |
| WriteStartObject(ReadOnlySpan<Byte>) |
Écrit le début d’un objet JSON avec un nom de propriété spécifié comme étendue en lecture seule d’octets en tant que clé. |
WriteStartObject(JsonEncodedText)
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
Écrit le début d’un objet JSON avec un nom de propriété précodé comme clé.
public:
void WriteStartObject(System::Text::Json::JsonEncodedText propertyName);
public void WriteStartObject(System.Text.Json.JsonEncodedText propertyName);
member this.WriteStartObject : System.Text.Json.JsonEncodedText -> unit
Public Sub WriteStartObject (propertyName As JsonEncodedText)
Paramètres
- propertyName
- JsonEncodedText
Nom de propriété encodé JSON de l’objet JSON à transcoder et écrire en UTF-8.
Exceptions
La profondeur du JSON a dépassé la profondeur maximale de 1 000.
- ou -
La validation est activée et cette méthode entraîne l’écriture de JSON non valide.
Remarques
Le nom de la propriété doit déjà être échappé lors de la création de l’instance.JsonEncodedText
S’applique à
WriteStartObject(ReadOnlySpan<Char>)
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
Écrit le début d’un objet JSON avec un nom de propriété spécifié en tant qu’étendue de caractères en lecture seule comme clé.
public:
void WriteStartObject(ReadOnlySpan<char> propertyName);
public void WriteStartObject(ReadOnlySpan<char> propertyName);
member this.WriteStartObject : ReadOnlySpan<char> -> unit
Public Sub WriteStartObject (propertyName As ReadOnlySpan(Of Char))
Paramètres
- propertyName
- ReadOnlySpan<Char>
Nom de la propriété encodée UTF-16 de l’objet JSON à transcoder et écrire en UTF-8.
Exceptions
Le nom de propriété spécifié est trop grand.
La profondeur du JSON dépasse la profondeur maximale de 1 000.
- ou -
La validation est activée et cette opération d’écriture génère un JSON non valide.
Remarques
Le nom de la propriété est échappé avant l’écriture.
S’applique à
WriteStartObject(String)
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
Écrit le début d’un objet JSON avec un nom de propriété spécifié sous la forme d’une chaîne comme clé.
public:
void WriteStartObject(System::String ^ propertyName);
public void WriteStartObject(string propertyName);
member this.WriteStartObject : string -> unit
Public Sub WriteStartObject (propertyName As String)
Paramètres
- propertyName
- String
Nom de la propriété encodée UTF-16 de l’objet JSON à transcoder et écrire en UTF-8.
Exceptions
Le nom de propriété spécifié est trop grand.
La profondeur du JSON dépasse la profondeur maximale de 1 000.
- ou -
La validation est activée et cette opération d’écriture génère un JSON non valide.
Le propertyName paramètre est null.
Remarques
Le nom de la propriété est échappé avant l’écriture.
S’applique à
WriteStartObject()
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
Écrit le début d’un objet JSON.
public:
void WriteStartObject();
public void WriteStartObject();
member this.WriteStartObject : unit -> unit
Public Sub WriteStartObject ()
Exceptions
La profondeur du JSON dépasse la profondeur maximale de 1 000.
- ou -
La validation est activée et l’opération entraîne l’écriture de JSON non valide.
S’applique à
WriteStartObject(ReadOnlySpan<Byte>)
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
Écrit le début d’un objet JSON avec un nom de propriété spécifié comme étendue en lecture seule d’octets en tant que clé.
public:
void WriteStartObject(ReadOnlySpan<System::Byte> utf8PropertyName);
public void WriteStartObject(ReadOnlySpan<byte> utf8PropertyName);
member this.WriteStartObject : ReadOnlySpan<byte> -> unit
Public Sub WriteStartObject (utf8PropertyName As ReadOnlySpan(Of Byte))
Paramètres
- utf8PropertyName
- ReadOnlySpan<Byte>
Nom de propriété encodé en UTF-8 de l’objet JSON à écrire.
Exceptions
Le nom de propriété spécifié est trop grand.
La profondeur du JSON dépasse la profondeur maximale de 1 000.
- ou -
La validation est activée et cette opération d’écriture génère un JSON non valide.
Remarques
Le nom de la propriété est échappé avant l’écriture.