JsonSerializerOptions.IndentCharacter Propriété

Définition

Définit le caractère de retrait utilisé lorsque WriteIndented est activé. La valeur par défaut est le caractère d’espace.

public:
 property char IndentCharacter { char get(); void set(char value); };
public char IndentCharacter { get; set; }
member this.IndentCharacter : char with get, set
Public Property IndentCharacter As Char

Valeur de propriété

Exceptions

value contient un caractère non valide.

Levée si cette propriété est définie après la sérialisation ou la désérialisation.

Remarques

Les caractères autorisés sont l’espace et l’onglet horizontal.

S’applique à